#5F127C#5F127C

#5F127C is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.3% C 0.167 H 314.1°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#5F127C
RGBrgb(95, 18, 124)
HSLhsl(284, 75%, 28%)
HSVhsv(284, 85%, 49%)
CMYKcmyk(23.4%, 85.5%, 0%, 51.4%)
CIE-LABlab(24.71, 48.78, -42.45)
CIE-LCHlch(24.71, 64.67, 318.97°)
OKLaboklab(37.3% 0.1162 -0.1201)
OKLCHoklch(37.3% 0.167 314.1)
XYZxyz(8.5731, 4.3210, 19.4473)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F127C #2F7C12
analogous
#2A127C #5F127C #7C1264
triadic
#5F127C #7C5F12 #127C5F
tetradic
#5F127C #7C2A12 #2F7C12 #12647C
square
#5F127C #7C2A12 #2F7C12 #12647C
split-complementary
#5F127C #647C12 #127C2A
monochromatic
#14041B #360A47 #5F127C #881AB1 #AE29E0

Accessibility & contrast

On white

11.26
#5F127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5F127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F127C
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F127C#FFFFFF#000000##FFFFFF
##5F127C1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#043C7A
Tritanopia (blue-blind)
#5C2D49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f127c;
/* rgb */ color: rgb(95, 18, 124);
/* oklch */ color: oklch(37.3% 0.167 314.1);
Tailwind
colors: {
  custom: {
    50: '#915ca3',
    500: '#5f127c',
    950: '#000000',
  },
}
SCSS
$custom: #5f127c;
$custom-light: #915ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f127c",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 283.585,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37304,
    "c": 0.16714,
    "h": 314.1
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#5F127C
secondary
#59B238
accent
#F1376A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5F127C

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

Preview Lab → · Contrast checker → · Palette generator →

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