#5F1254#5F1254

#5F1254 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.133 H 334.7°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#5F1254
RGBrgb(95, 18, 84)
HSLhsl(309, 68%, 22%)
HSVhsv(309, 81%, 37%)
CMYKcmyk(0%, 81.1%, 11.6%, 62.7%)
CIE-LABlab(21.97, 41.20, -20.74)
CIE-LCHlch(21.97, 46.12, 333.27°)
OKLaboklab(34.49% 0.1201 -0.0568)
OKLCHoklch(34.49% 0.133 334.7)
XYZxyz(6.5359, 3.5062, 8.7183)
Luminance0.0351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1254 #125F1D
analogous
#43125F #5F1254 #5F122E
triadic
#5F1254 #545F12 #12545F
tetradic
#5F1254 #5F4312 #125F1D #122E5F
square
#5F1254 #5F4312 #125F1D #122E5F
split-complementary
#5F1254 #2E5F12 #125F43
monochromatic
#1A0517 #2C0827 #5F1254 #921C81 #C625AF

Accessibility & contrast

On white

12.34
#5F1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1254
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1254#FFFFFF#000000##FFFFFF
##5F12541.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112D56
Deuteranopia (green-blind)
#2E3952
Tritanopia (blue-blind)
#641932
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1254;
/* rgb */ color: rgb(95, 18, 84);
/* oklch */ color: oklch(34.5% 0.133 334.7);
Tailwind
colors: {
  custom: {
    50: '#8f5a84',
    500: '#5f1254',
    950: '#000000',
  },
}
SCSS
$custom: #5f1254;
$custom-light: #8f5a84;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1254",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 308.571,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34491,
    "c": 0.1328,
    "h": 334.7
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#5F1254
secondary
#369744
accent
#EB563D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1254

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

Preview Lab → · Contrast checker → · Palette generator →

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