#5F127F#5F127F

#5F127F is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.5% C 0.170 H 312.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#5F127F
RGBrgb(95, 18, 127)
HSLhsl(282, 75%, 28%)
HSVhsv(282, 86%, 50%)
CMYKcmyk(25.2%, 85.8%, 0%, 50.2%)
CIE-LABlab(24.95, 49.41, -43.96)
CIE-LCHlch(24.95, 66.14, 318.34°)
OKLaboklab(37.55% 0.1155 -0.1245)
OKLCHoklch(37.55% 0.17 312.8)
XYZxyz(8.7657, 4.3981, 20.4617)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F127F #327F12
analogous
#28127F #5F127F #7F1268
triadic
#5F127F #7F5F12 #127F5F
tetradic
#5F127F #7F2812 #327F12 #12687F
square
#5F127F #7F2812 #327F12 #12687F
split-complementary
#5F127F #687F12 #127F28
monochromatic
#14041B #370A49 #5F127F #871AB5 #AB2BE1

Accessibility & contrast

On white

11.17
#5F127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5F127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F127F
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F127F#FFFFFF#000000##FFFFFF
##5F127F1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#5B2F4A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f127f;
/* rgb */ color: rgb(95, 18, 127);
/* oklch */ color: oklch(37.5% 0.170 312.8);
Tailwind
colors: {
  custom: {
    50: '#915ca5',
    500: '#5f127f',
    950: '#000000',
  },
}
SCSS
$custom: #5f127f;
$custom-light: #915ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f127f",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 282.385,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37547,
    "c": 0.16985,
    "h": 312.8
  },
  "luminance": 0.04398
}

Semantic roles & 50–950 ramp

primary
#5F127F
secondary
#5DB538
accent
#F2366D
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F127F

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

Preview Lab → · Contrast checker → · Palette generator →

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