#5F236B#5F236B

#5F236B is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.7% C 0.131 H 320.6°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#5F236B
RGBrgb(95, 35, 107)
HSLhsl(290, 51%, 28%)
HSVhsv(290, 67%, 42%)
CMYKcmyk(11.2%, 67.3%, 0%, 58%)
CIE-LABlab(25.85, 38.48, -29.72)
CIE-LCHlch(25.85, 48.62, 322.32°)
OKLaboklab(37.74% 0.101 -0.0829)
OKLCHoklch(37.74% 0.131 320.6)
XYZxyz(7.9739, 4.6969, 14.3936)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F236B #2F6B23
analogous
#3B236B #5F236B #6B2353
triadic
#5F236B #6B5F23 #236B5F
tetradic
#5F236B #6B3B23 #2F6B23 #23536B
square
#5F236B #6B3B23 #2F6B23 #23536B
split-complementary
#5F236B #536B23 #236B3B
monochromatic
#140817 #36143D #5F236B #883299 #AE46C2

Accessibility & contrast

On white

10.83
#5F236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5F236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F236B
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F236B#FFFFFF#000000##FFFFFF
##5F236B1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10396D
Deuteranopia (green-blind)
#2A3F69
Tritanopia (blue-blind)
#602F43
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f236b;
/* rgb */ color: rgb(95, 35, 107);
/* oklch */ color: oklch(37.7% 0.131 320.6);
Tailwind
colors: {
  custom: {
    50: '#8f6396',
    500: '#5f236b',
    950: '#000000',
  },
}
SCSS
$custom: #5f236b;
$custom-light: #8f6396;
$custom-dark: #000000;
JSON
{
  "hex": "#5f236b",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 290,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37737,
    "c": 0.13065,
    "h": 320.6
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

primary
#5F236B
secondary
#599E4B
accent
#DA4E65
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050D
muted
#7E7A7E

Preview Lab

Preview with #5F236B

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

Preview Lab → · Contrast checker → · Palette generator →

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