#5F2C84#5F2C84

#5F2C84 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.144 H 307.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5F2C84
RGBrgb(95, 44, 132)
HSLhsl(275, 50%, 35%)
HSVhsv(275, 67%, 52%)
CMYKcmyk(28%, 66.7%, 0%, 48.2%)
CIE-LABlab(29.16, 39.68, -40.29)
CIE-LCHlch(29.16, 56.55, 314.56°)
OKLaboklab(40.66% 0.0886 -0.1139)
OKLCHoklch(40.66% 0.144 307.9)
XYZxyz(9.7840, 5.9003, 22.4488)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C84 #51842C
analogous
#332C84 #5F2C84 #842C7D
triadic
#5F2C84 #845F2C #2C845F
tetradic
#5F2C84 #84332C #51842C #2C7D84
square
#5F2C84 #84332C #51842C #2C7D84
split-complementary
#5F2C84 #7D842C #2C8433
monochromatic
#1D0D28 #3E1D56 #5F2C84 #803BB2 #9E60CA

Accessibility & contrast

On white

9.63
#5F2C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5F2C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2C84
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C84#FFFFFF#000000##FFFFFF
##5F2C841.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#1B4582
Tritanopia (blue-blind)
#593E54
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2c84;
/* rgb */ color: rgb(95, 44, 132);
/* oklch */ color: oklch(40.7% 0.144 307.9);
Tailwind
colors: {
  custom: {
    50: '#9069a8',
    500: '#5f2c84',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c84;
$custom-light: #9069a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c84",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 132
  },
  "hsl": {
    "h": 274.773,
    "s": 50,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40656,
    "c": 0.14431,
    "h": 307.9
  },
  "luminance": 0.059
}

Semantic roles & 50–950 ramp

primary
#5F2C84
secondary
#7FB05C
accent
#DA4E89
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2C84

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

Preview Lab → · Contrast checker → · Palette generator →

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