#5F2D9B#5F2D9B

#5F2D9B is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.169 H 300.0°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5F2D9B
RGBrgb(95, 45, 155)
HSLhsl(267, 55%, 39%)
HSVhsv(267, 71%, 61%)
CMYKcmyk(38.7%, 71%, 0%, 39.2%)
CIE-LABlab(31.06, 44.98, -51.40)
CIE-LCHlch(31.06, 68.30, 311.19°)
OKLaboklab(42.56% 0.0846 -0.1466)
OKLCHoklch(42.56% 0.169 300)
XYZxyz(11.5726, 6.6761, 31.6829)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D9B #699B2D
analogous
#2D329B #5F2D9B #962D9B
triadic
#5F2D9B #9B5F2D #2D9B5F
tetradic
#5F2D9B #9B2D32 #699B2D #2D9B96
square
#5F2D9B #9B2D32 #699B2D #2D9B96
split-complementary
#5F2D9B #9B962D #329B2D
monochromatic
#25113C #421F6C #5F2D9B #7C3EC7 #9D6ED5

Accessibility & contrast

On white

8.99
#5F2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5F2D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D9B
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D9B#FFFFFF#000000##FFFFFF
##5F2D9B1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004899
Tritanopia (blue-blind)
#514761
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2d9b;
/* rgb */ color: rgb(95, 45, 155);
/* oklch */ color: oklch(42.6% 0.169 300.0);
Tailwind
colors: {
  custom: {
    50: '#926ab9',
    500: '#5f2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d9b;
$custom-light: #926ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d9b",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 267.273,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42558,
    "c": 0.16923,
    "h": 300
  },
  "luminance": 0.06676
}

Semantic roles & 50–950 ramp

primary
#5F2D9B
secondary
#96BC68
accent
#DE499B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F2D9B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5F2D9B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva