#5F1A67#5F1A67

#5F1A67 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.4% C 0.139 H 323.4°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#5F1A67
RGBrgb(95, 26, 103)
HSLhsl(294, 60%, 25%)
HSVhsv(294, 75%, 40%)
CMYKcmyk(7.8%, 74.8%, 0%, 59.6%)
CIE-LABlab(24.17, 41.68, -29.82)
CIE-LCHlch(24.17, 51.25, 324.42°)
OKLaboklab(36.44% 0.1119 -0.0831)
OKLCHoklch(36.44% 0.139 323.4)
XYZxyz(7.5367, 4.1514, 13.2337)
Luminance0.0415 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A67 #22671A
analogous
#381A67 #5F1A67 #671A48
triadic
#5F1A67 #675F1A #1A675F
tetradic
#5F1A67 #67381A #22671A #1A4867
square
#5F1A67 #67381A #22671A #1A4867
split-complementary
#5F1A67 #48671A #1A6738
monochromatic
#170618 #320E36 #5F1A67 #8C2698 #B933C9

Accessibility & contrast

On white

11.47
#5F1A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5F1A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1A67
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A67#FFFFFF#000000##FFFFFF
##5F1A671.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023469
Deuteranopia (green-blind)
#273C65
Tritanopia (blue-blind)
#61273E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1a67;
/* rgb */ color: rgb(95, 26, 103);
/* oklch */ color: oklch(36.4% 0.139 323.4);
Tailwind
colors: {
  custom: {
    50: '#8f5e93',
    500: '#5f1a67',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a67;
$custom-light: #8f5e93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a67",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 293.766,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36441,
    "c": 0.13938,
    "h": 323.4
  },
  "luminance": 0.04151
}

Semantic roles & 50–950 ramp

primary
#5F1A67
secondary
#4A9D40
accent
#E34555
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F1A67

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

Preview Lab → · Contrast checker → · Palette generator →

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