Colour reference

Violet 500

#8b5cf6

RGB
rgb(139 92 246)
HSL
258°, 90%, 66%
OKLCh
60.6% 0.219 292.7

Open in the picker

Violet 500 in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#8b5cf6
RGBrgb(139 92 246)
RGB legacyrgb(139, 92, 246)
RGB percentrgb(54.51% 36.08% 96.47%)
HSLhsl(258.3 89.5% 66.3%)
HSL legacyhsl(258.3, 89.5%, 66.3%)
HSV / HSBhsv(258.3, 62.6%, 96.5%)
HWBhwb(258.3 36.1% 3.5%)
Nearest namemediumslateblue (approx.)
CMYKcmyk(43.5%, 62.6%, 0%, 3.5%)Naive conversion. Real print work needs an ICC profile.

Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.

OKLChoklch(60.563% 0.21892 292.717)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(60.563% 0.08454 -0.20193)
CIE LChlch(50.691% 85.189 302.563)
CIE Lablab(50.691% 45.851 -71.797)
Display P3color(display-p3 0.5183 0.3688 0.9315)
Rec. 2020color(rec2020 0.476 0.3346 0.9165)
srgb-linearcolor(srgb-linear 0.2582 0.107 0.9216)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.3111 0.198 0.8937)

ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.

GLSL vec3 — sRGBvec3(0.545, 0.361, 0.965)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.258, 0.107, 0.922)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.545, 0.361, 0.965, 1.0)
GLSL vec4 — linearvec4(0.258, 0.107, 0.922, 1.0)
GLSL ivec3ivec3(139, 92, 246)
HLSL float3 — sRGBfloat3(0.545, 0.361, 0.965)
HLSL float3 — linearfloat3(0.258, 0.107, 0.922)
HLSL float4 — sRGBfloat4(0.545, 0.361, 0.965, 1.0)
HLSL half4 — sRGBhalf4(0.545, 0.361, 0.965, 1.0)
WGSL vec3f — sRGBvec3f(0.545, 0.361, 0.965)
WGSL vec4f — sRGBvec4f(0.545, 0.361, 0.965, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.258, 0.107, 0.922)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew Color(0.545f, 0.361f, 0.965f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255.
Unity Color32new Color32(139, 92, 246, 255)
Unreal FLinearColorFLinearColor(0.2582f, 0.107f, 0.9216f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(139, 92, 246, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(0.545, 0.361, 0.965, 1)
Flutter ColorColor(0xFF8B5CF6)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(139, 92, 246)
SwiftUI ColorColor(red: 0.545, green: 0.361, blue: 0.965)
UIKit UIColorUIColor(red: 0.545, green: 0.361, blue: 0.965, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0x8B5CF6
0x hex (ARGB)0xFF8B5CF6
Array 0–1[0.545, 0.361, 0.965]
Array 0–255[139, 92, 246]
Decimal integer9133302

Contrast and accessibility

WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.

PairingWCAG 2 ratioLevelAPCASuitable for
Violet 500 on white4.23:1AA LargeLc 69Headings and large text
Violet 500 on black4.96:1AALc 33Non-text elements only

Violet 500 text on a white background

Violet 500 text on a black background

White text on Violet 500

Black text on Violet 500

Tonal scale

Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.

  • 50#f8f4ff
  • 100#eee8ff
  • 200#ddd3ff
  • 300#c8b7ff
  • 400#af90ff
  • 500#9466ff
  • 600#7b4cdf
  • 700#6434be
  • 800#5121a1
  • 900#411087
  • 950#27005c

Tints and shades

Mixed perceptually toward white and black, so the steps feel evenly spaced.

  • Tint 1#9c7bfa
  • Tint 2#ae97fd
  • Tint 3#c1b1ff
  • Tint 4#d5ccff
  • Tint 5#e9e5ff
  • Shade 1#6c46c1
  • Shade 2#4e328f
  • Shade 3#321f5f
  • Shade 4#190d34
  • Shade 5#04020e

Colours that work with Violet 500

Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.

  • #848a00
  • #d05a00
  • #009b79
  • #3476ff
  • #bc45cc

Closest CSS names

  • mediumslateblueΔEok 0.036
  • mediumpurpleΔEok 0.066
  • slateblueΔEok 0.082
  • bluevioletΔEok 0.086
  • darkorchidΔEok 0.098
  • mediumorchidΔEok 0.100