#5F1267#5F1267

#5F1267 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.7% C 0.149 H 323.8°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#5F1267
RGBrgb(95, 18, 103)
HSLhsl(294, 70%, 24%)
HSVhsv(294, 83%, 40%)
CMYKcmyk(7.8%, 82.5%, 0%, 59.6%)
CIE-LABlab(23.15, 44.58, -31.44)
CIE-LCHlch(23.15, 54.55, 324.81°)
OKLaboklab(35.72% 0.1198 -0.0878)
OKLCHoklch(35.72% 0.149 323.8)
XYZxyz(7.3836, 3.8452, 13.1826)
Luminance0.0384 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1267 #1A6712
analogous
#341267 #5F1267 #671244
triadic
#5F1267 #675F12 #12675F
tetradic
#5F1267 #673412 #1A6712 #124467
square
#5F1267 #673412 #1A6712 #124467
split-complementary
#5F1267 #446712 #126734
monochromatic
#18051A #2F0933 #5F1267 #8F1B9B #BF24CF

Accessibility & contrast

On white

11.87
#5F1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5F1267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1267
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1267#FFFFFF#000000##FFFFFF
##5F12671.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003269
Deuteranopia (green-blind)
#223A65
Tritanopia (blue-blind)
#61233D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1267;
/* rgb */ color: rgb(95, 18, 103);
/* oklch */ color: oklch(35.7% 0.149 323.8);
Tailwind
colors: {
  custom: {
    50: '#905b93',
    500: '#5f1267',
    950: '#000000',
  },
}
SCSS
$custom: #5f1267;
$custom-light: #905b93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1267",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 294.353,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3572,
    "c": 0.14854,
    "h": 323.8
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#5F1267
secondary
#409F36
accent
#ED3B4C
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1267

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

Preview Lab → · Contrast checker → · Palette generator →

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