#5F2B72#5F2B72

#5F2B72 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.3% C 0.125 H 316.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#5F2B72
RGBrgb(95, 43, 114)
HSLhsl(284, 45%, 31%)
HSVhsv(284, 62%, 45%)
CMYKcmyk(16.7%, 62.3%, 0%, 55.3%)
CIE-LABlab(27.78, 35.94, -31.15)
CIE-LCHlch(27.78, 47.55, 319.09°)
OKLaboklab(39.28% 0.0903 -0.0871)
OKLCHoklch(39.28% 0.125 316)
XYZxyz(8.6200, 5.3759, 16.4999)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2B72 #3E722B
analogous
#3B2B72 #5F2B72 #722B61
triadic
#5F2B72 #725F2B #2B725F
tetradic
#5F2B72 #723B2B #3E722B #2B6172
square
#5F2B72 #723B2B #3E722B #2B6172
split-complementary
#5F2B72 #61722B #2B723B
monochromatic
#150919 #3A1A46 #5F2B72 #843C9E #A458C0

Accessibility & contrast

On white

10.12
#5F2B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5F2B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2B72
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2B72#FFFFFF#000000##FFFFFF
##5F2B721.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E74
Deuteranopia (green-blind)
#2B4370
Tritanopia (blue-blind)
#5E374A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f2b72;
/* rgb */ color: rgb(95, 43, 114);
/* oklch */ color: oklch(39.3% 0.125 316.0);
Tailwind
colors: {
  custom: {
    50: '#8f679b',
    500: '#5f2b72',
    950: '#000000',
  },
}
SCSS
$custom: #5f2b72;
$custom-light: #8f679b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2b72",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 283.944,
    "s": 45.223,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39275,
    "c": 0.12548,
    "h": 316
  },
  "luminance": 0.05376
}

Semantic roles & 50–950 ramp

primary
#5F2B72
secondary
#6AA455
accent
#D55376
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060E
muted
#7D7A7E

Preview Lab

Preview with #5F2B72

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

Preview Lab → · Contrast checker → · Palette generator →

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