#5F1153#5F1153

#5F1153 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.133 H 335.3°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#5F1153
RGBrgb(95, 17, 83)
HSLhsl(309, 70%, 22%)
HSVhsv(309, 82%, 37%)
CMYKcmyk(0%, 82.1%, 12.6%, 62.7%)
CIE-LABlab(21.80, 41.36, -20.34)
CIE-LCHlch(21.80, 46.09, 333.81°)
OKLaboklab(34.35% 0.121 -0.0556)
OKLCHoklch(34.35% 0.133 335.3)
XYZxyz(6.4812, 3.4589, 8.5082)
Luminance0.0346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1153 #115F1D
analogous
#44115F #5F1153 #5F112C
triadic
#5F1153 #535F11 #11535F
tetradic
#5F1153 #5F4411 #115F1D #112C5F
square
#5F1153 #5F4411 #115F1D #112C5F
split-complementary
#5F1153 #2C5F11 #115F44
monochromatic
#1A0517 #2B0826 #5F1153 #931A80 #C724AE

Accessibility & contrast

On white

12.41
#5F1153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5F1153 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1153
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1153#FFFFFF#000000##FFFFFF
##5F11531.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112D55
Deuteranopia (green-blind)
#2E3851
Tritanopia (blue-blind)
#641831
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1153;
/* rgb */ color: rgb(95, 17, 83);
/* oklch */ color: oklch(34.4% 0.133 335.3);
Tailwind
colors: {
  custom: {
    50: '#8f5983',
    500: '#5f1153',
    950: '#000000',
  },
}
SCSS
$custom: #5f1153;
$custom-light: #8f5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1153",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 83
  },
  "hsl": {
    "h": 309.231,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3435,
    "c": 0.13312,
    "h": 335.3
  },
  "luminance": 0.03458
}

Semantic roles & 50–950 ramp

primary
#5F1153
secondary
#349844
accent
#EC573B
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1153

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

Preview Lab → · Contrast checker → · Palette generator →

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