#5F246B#5F246B

#5F246B is a dark, vivid purple. Relative luminance 0.048; OKLCH L 37.9% C 0.129 H 320.5°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#5F246B
RGBrgb(95, 36, 107)
HSLhsl(290, 50%, 28%)
HSVhsv(290, 66%, 42%)
CMYKcmyk(11.2%, 66.4%, 0%, 58%)
CIE-LABlab(26.03, 37.99, -29.44)
CIE-LCHlch(26.03, 48.07, 322.23°)
OKLaboklab(37.86% 0.0996 -0.0821)
OKLCHoklch(37.86% 0.129 320.5)
XYZxyz(8.0037, 4.7566, 14.4036)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F246B #306B24
analogous
#3B246B #5F246B #6B2453
triadic
#5F246B #6B5F24 #246B5F
tetradic
#5F246B #6B3B24 #306B24 #24536B
square
#5F246B #6B3B24 #306B24 #24536B
split-complementary
#5F246B #536B24 #246B3B
monochromatic
#140817 #36153D #5F246B #883399 #AD48C1

Accessibility & contrast

On white

10.76
#5F246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F246B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F246B
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F246B#FFFFFF#000000##FFFFFF
##5F246B1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12396D
Deuteranopia (green-blind)
#2B4069
Tritanopia (blue-blind)
#603044
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f246b;
/* rgb */ color: rgb(95, 36, 107);
/* oklch */ color: oklch(37.9% 0.129 320.5);
Tailwind
colors: {
  custom: {
    50: '#8f6396',
    500: '#5f246b',
    950: '#000000',
  },
}
SCSS
$custom: #5f246b;
$custom-light: #8f6396;
$custom-dark: #000000;
JSON
{
  "hex": "#5f246b",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 289.859,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37864,
    "c": 0.12912,
    "h": 320.5
  },
  "luminance": 0.04756
}

Semantic roles & 50–950 ramp

primary
#5F246B
secondary
#5A9E4D
accent
#D94F66
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050D
muted
#7E7A7E

Preview Lab

Preview with #5F246B

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

Preview Lab → · Contrast checker → · Palette generator →

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