#5F246E#5F246E

#5F246E is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.1% C 0.132 H 318.9°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5F246E
RGBrgb(95, 36, 110)
HSLhsl(288, 51%, 29%)
HSVhsv(288, 67%, 43%)
CMYKcmyk(13.6%, 67.3%, 0%, 56.9%)
CIE-LABlab(26.22, 38.64, -31.07)
CIE-LCHlch(26.22, 49.58, 321.19°)
OKLaboklab(38.06% 0.0997 -0.0869)
OKLCHoklch(38.06% 0.132 318.9)
XYZxyz(8.1643, 4.8208, 15.2493)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F246E #336E24
analogous
#3A246E #5F246E #6E2458
triadic
#5F246E #6E5F24 #246E5F
tetradic
#5F246E #6E3A24 #336E24 #24586E
square
#5F246E #6E3A24 #336E24 #24586E
split-complementary
#5F246E #586E24 #246E3A
monochromatic
#140817 #371540 #5F246E #87339C #AB49C3

Accessibility & contrast

On white

10.69
#5F246E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F246E
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F246E#FFFFFF#000000##FFFFFF
##5F246E1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3A70
Deuteranopia (green-blind)
#28406C
Tritanopia (blue-blind)
#5F3145
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f246e;
/* rgb */ color: rgb(95, 36, 110);
/* oklch */ color: oklch(38.1% 0.132 318.9);
Tailwind
colors: {
  custom: {
    50: '#8f6398',
    500: '#5f246e',
    950: '#000000',
  },
}
SCSS
$custom: #5f246e;
$custom-light: #8f6398;
$custom-dark: #000000;
JSON
{
  "hex": "#5f246e",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 110
  },
  "hsl": {
    "h": 287.838,
    "s": 50.685,
    "l": 28.627
  },
  "oklch": {
    "l": 0.38061,
    "c": 0.13221,
    "h": 318.9
  },
  "luminance": 0.0482
}

Semantic roles & 50–950 ramp

primary
#5F246E
secondary
#5EA14D
accent
#DA4E6A
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050D
muted
#7E7A7E

Preview Lab

Preview with #5F246E

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

Preview Lab → · Contrast checker → · Palette generator →

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