#5F1258#5F1258

#5F1258 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.136 H 332.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5F1258
RGBrgb(95, 18, 88)
HSLhsl(305, 68%, 22%)
HSVhsv(305, 81%, 37%)
CMYKcmyk(0%, 81.1%, 7.4%, 62.7%)
CIE-LABlab(22.20, 41.87, -23.06)
CIE-LCHlch(22.20, 47.80, 331.16°)
OKLaboklab(34.73% 0.1203 -0.0634)
OKLCHoklch(34.73% 0.136 332.2)
XYZxyz(6.6971, 3.5707, 9.5671)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1258 #125F19
analogous
#40125F #5F1258 #5F1231
triadic
#5F1258 #585F12 #12585F
tetradic
#5F1258 #5F4012 #125F19 #12315F
square
#5F1258 #5F4012 #125F19 #12315F
split-complementary
#5F1258 #315F12 #125F40
monochromatic
#1A0518 #2C0828 #5F1258 #921C88 #C625B7

Accessibility & contrast

On white

12.25
#5F1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F1258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1258
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1258#FFFFFF#000000##FFFFFF
##5F12581.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2E5A
Deuteranopia (green-blind)
#2C3956
Tritanopia (blue-blind)
#631B34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1258;
/* rgb */ color: rgb(95, 18, 88);
/* oklch */ color: oklch(34.7% 0.136 332.2);
Tailwind
colors: {
  custom: {
    50: '#8f5a87',
    500: '#5f1258',
    950: '#000000',
  },
}
SCSS
$custom: #5f1258;
$custom-light: #8f5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1258",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 305.455,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34732,
    "c": 0.13597,
    "h": 332.2
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#5F1258
secondary
#36973E
accent
#EB4D3D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1258

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

Preview Lab → · Contrast checker → · Palette generator →

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