#5F1068#5F1068

#5F1068 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.151 H 323.3°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#5F1068
RGBrgb(95, 16, 104)
HSLhsl(294, 73%, 24%)
HSVhsv(294, 85%, 41%)
CMYKcmyk(8.7%, 84.6%, 0%, 59.2%)
CIE-LABlab(23.01, 45.38, -32.32)
CIE-LCHlch(23.01, 55.71, 324.55°)
OKLaboklab(35.64% 0.1214 -0.0904)
OKLCHoklch(35.64% 0.151 323.3)
XYZxyz(7.4031, 3.8034, 13.4382)
Luminance0.0380 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1068 #196810
analogous
#331068 #5F1068 #681045
triadic
#5F1068 #685F10 #10685F
tetradic
#5F1068 #683310 #196810 #104568
square
#5F1068 #683310 #196810 #104568
split-complementary
#5F1068 #456810 #106833
monochromatic
#18041B #2F0833 #5F1068 #8F189D #C020D2

Accessibility & contrast

On white

11.93
#5F1068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5F1068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1068
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1068#FFFFFF#000000##FFFFFF
##5F10681.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#213A66
Tritanopia (blue-blind)
#61223D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1068;
/* rgb */ color: rgb(95, 16, 104);
/* oklch */ color: oklch(35.6% 0.151 323.3);
Tailwind
colors: {
  custom: {
    50: '#905a94',
    500: '#5f1068',
    950: '#000000',
  },
}
SCSS
$custom: #5f1068;
$custom-light: #905a94;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1068",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 293.864,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35641,
    "c": 0.15131,
    "h": 323.3
  },
  "luminance": 0.03803
}

Semantic roles & 50–950 ramp

primary
#5F1068
secondary
#3FA034
accent
#F0384B
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1068

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

Preview Lab → · Contrast checker → · Palette generator →

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