#5F236A#5F236A

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

Color values

HEX#5F236A
RGBrgb(95, 35, 106)
HSLhsl(291, 50%, 28%)
HSVhsv(291, 67%, 42%)
CMYKcmyk(10.4%, 67%, 0%, 58.4%)
CIE-LABlab(25.79, 38.27, -29.18)
CIE-LCHlch(25.79, 48.12, 322.68°)
OKLaboklab(37.67% 0.1009 -0.0813)
OKLCHoklch(37.67% 0.13 321.1)
XYZxyz(7.9216, 4.6760, 14.1182)
Luminance0.0468 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F236A #2E6A23
analogous
#3B236A #5F236A #6A2352
triadic
#5F236A #6A5F23 #236A5F
tetradic
#5F236A #6A3B23 #2E6A23 #23526A
square
#5F236A #6A3B23 #2E6A23 #23526A
split-complementary
#5F236A #526A23 #236A3B
monochromatic
#150817 #36143C #5F236A #883298 #AF46C2

Accessibility & contrast

On white

10.85
#5F236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F236A
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F236A#FFFFFF#000000##FFFFFF
##5F236A1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11396C
Deuteranopia (green-blind)
#2A3F68
Tritanopia (blue-blind)
#602F43
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f236a;
/* rgb */ color: rgb(95, 35, 106);
/* oklch */ color: oklch(37.7% 0.130 321.1);
Tailwind
colors: {
  custom: {
    50: '#8f6395',
    500: '#5f236a',
    950: '#000000',
  },
}
SCSS
$custom: #5f236a;
$custom-light: #8f6395;
$custom-dark: #000000;
JSON
{
  "hex": "#5f236a",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 290.704,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37671,
    "c": 0.12963,
    "h": 321.1
  },
  "luminance": 0.04676
}

Semantic roles & 50–950 ramp

primary
#5F236A
secondary
#589D4B
accent
#DA4E64
background
#F9F6F9
surface
#F1EBF1
border
#CBC6CB
text
#0D050D
muted
#7E7A7E

Preview Lab

Preview with #5F236A

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

Preview Lab → · Contrast checker → · Palette generator →

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