#5F125B#5F125B

#5F125B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.138 H 330.4°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#5F125B
RGBrgb(95, 18, 91)
HSLhsl(303, 68%, 22%)
HSVhsv(303, 81%, 37%)
CMYKcmyk(0%, 81.1%, 4.2%, 62.7%)
CIE-LABlab(22.38, 42.39, -24.77)
CIE-LCHlch(22.38, 49.09, 329.70°)
OKLaboklab(34.92% 0.1203 -0.0684)
OKLCHoklch(34.92% 0.138 330.4)
XYZxyz(6.8239, 3.6214, 10.2351)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F125B #125F16
analogous
#3D125F #5F125B #5F1235
triadic
#5F125B #5B5F12 #125B5F
tetradic
#5F125B #5F3D12 #125F16 #12355F
square
#5F125B #5F3D12 #125F16 #12355F
split-complementary
#5F125B #355F12 #125F3D
monochromatic
#1A0519 #2C082A #5F125B #921C8C #C625BE

Accessibility & contrast

On white

12.18
#5F125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F125B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F125B#FFFFFF#000000##FFFFFF
##5F125B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082F5D
Deuteranopia (green-blind)
#2A3959
Tritanopia (blue-blind)
#631D36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f125b;
/* rgb */ color: rgb(95, 18, 91);
/* oklch */ color: oklch(34.9% 0.138 330.4);
Tailwind
colors: {
  custom: {
    50: '#8f5a8a',
    500: '#5f125b',
    950: '#000000',
  },
}
SCSS
$custom: #5f125b;
$custom-light: #8f5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f125b",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 303.117,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34919,
    "c": 0.13841,
    "h": 330.4
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#5F125B
secondary
#36973B
accent
#EB463D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F125B

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

Preview Lab → · Contrast checker → · Palette generator →

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