#5F127D#5F127D

#5F127D is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.4% C 0.168 H 313.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5F127D
RGBrgb(95, 18, 125)
HSLhsl(283, 75%, 28%)
HSVhsv(283, 86%, 49%)
CMYKcmyk(24%, 85.6%, 0%, 51%)
CIE-LABlab(24.79, 48.99, -42.96)
CIE-LCHlch(24.79, 65.15, 318.75°)
OKLaboklab(37.38% 0.116 -0.1216)
OKLCHoklch(37.38% 0.168 313.7)
XYZxyz(8.6366, 4.3465, 19.7821)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F127D #307D12
analogous
#2A127D #5F127D #7D1265
triadic
#5F127D #7D5F12 #127D5F
tetradic
#5F127D #7D2A12 #307D12 #12657D
square
#5F127D #7D2A12 #307D12 #12657D
split-complementary
#5F127D #657D12 #127D2A
monochromatic
#14041B #360A48 #5F127D #881AB2 #AD29E0

Accessibility & contrast

On white

11.23
#5F127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5F127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F127D
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F127D#FFFFFF#000000##FFFFFF
##5F127D1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#023C7B
Tritanopia (blue-blind)
#5C2E49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f127d;
/* rgb */ color: rgb(95, 18, 125);
/* oklch */ color: oklch(37.4% 0.168 313.7);
Tailwind
colors: {
  custom: {
    50: '#915ca3',
    500: '#5f127d',
    950: '#000000',
  },
}
SCSS
$custom: #5f127d;
$custom-light: #915ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f127d",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 283.178,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37384,
    "c": 0.16804,
    "h": 313.7
  },
  "luminance": 0.04346
}

Semantic roles & 50–950 ramp

primary
#5F127D
secondary
#5AB338
accent
#F1366B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F127D

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

Preview Lab → · Contrast checker → · Palette generator →

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