#5F2E9B#5F2E9B

#5F2E9B is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.168 H 299.8°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5F2E9B
RGBrgb(95, 46, 155)
HSLhsl(267, 54%, 39%)
HSVhsv(267, 70%, 61%)
CMYKcmyk(38.7%, 70.3%, 0%, 39.2%)
CIE-LABlab(31.24, 44.48, -51.10)
CIE-LCHlch(31.24, 67.75, 311.04°)
OKLaboklab(42.69% 0.0835 -0.1457)
OKLCHoklch(42.69% 0.168 299.8)
XYZxyz(11.6112, 6.7533, 31.6958)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E9B #6A9B2E
analogous
#2E349B #5F2E9B #962E9B
triadic
#5F2E9B #9B5F2E #2E9B5F
tetradic
#5F2E9B #9B2E34 #6A9B2E #2E9B96
square
#5F2E9B #9B2E34 #6A9B2E #2E9B96
split-complementary
#5F2E9B #9B962E #349B2E
monochromatic
#25123D #42206C #5F2E9B #7C40C6 #9D6FD4

Accessibility & contrast

On white

8.93
#5F2E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5F2E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E9B
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E9B#FFFFFF#000000##FFFFFF
##5F2E9B1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2e9b;
/* rgb */ color: rgb(95, 46, 155);
/* oklch */ color: oklch(42.7% 0.168 299.8);
Tailwind
colors: {
  custom: {
    50: '#926bb9',
    500: '#5f2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e9b;
$custom-light: #926bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e9b",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 266.972,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42687,
    "c": 0.16795,
    "h": 299.8
  },
  "luminance": 0.06753
}

Semantic roles & 50–950 ramp

primary
#5F2E9B
secondary
#97BC69
accent
#DE4A9B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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