#5F246D#5F246D

#5F246D is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.0% C 0.131 H 319.4°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5F246D
RGBrgb(95, 36, 109)
HSLhsl(288, 50%, 28%)
HSVhsv(288, 67%, 43%)
CMYKcmyk(12.8%, 67%, 0%, 57.3%)
CIE-LABlab(26.15, 38.42, -30.53)
CIE-LCHlch(26.15, 49.08, 321.53°)
OKLaboklab(38% 0.0997 -0.0853)
OKLCHoklch(38% 0.131 319.4)
XYZxyz(8.1102, 4.7991, 14.9642)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F246D #326D24
analogous
#3A246D #5F246D #6D2456
triadic
#5F246D #6D5F24 #246D5F
tetradic
#5F246D #6D3A24 #326D24 #24566D
square
#5F246D #6D3A24 #326D24 #24566D
split-complementary
#5F246D #566D24 #246D3A
monochromatic
#140817 #37153F #5F246D #87339B #AB49C3

Accessibility & contrast

On white

10.72
#5F246D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5F246D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F246D
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F246D#FFFFFF#000000##FFFFFF
##5F246D1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3A6F
Deuteranopia (green-blind)
#29406B
Tritanopia (blue-blind)
#5F3045
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f246d;
/* rgb */ color: rgb(95, 36, 109);
/* oklch */ color: oklch(38.0% 0.131 319.4);
Tailwind
colors: {
  custom: {
    50: '#8f6397',
    500: '#5f246d',
    950: '#000000',
  },
}
SCSS
$custom: #5f246d;
$custom-light: #8f6397;
$custom-dark: #000000;
JSON
{
  "hex": "#5f246d",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 109
  },
  "hsl": {
    "h": 288.493,
    "s": 50.345,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37995,
    "c": 0.13117,
    "h": 319.4
  },
  "luminance": 0.04799
}

Semantic roles & 50–950 ramp

primary
#5F246D
secondary
#5DA04D
accent
#DA4E69
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050D
muted
#7E7A7E

Preview Lab

Preview with #5F246D

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

Preview Lab → · Contrast checker → · Palette generator →

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