#5F2CB5#5F2CB5

#5F2CB5 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.199 H 293.6°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5F2CB5
RGBrgb(95, 44, 181)
HSLhsl(262, 61%, 44%)
HSVhsv(262, 76%, 71%)
CMYKcmyk(47.5%, 75.7%, 0%, 29%)
CIE-LABlab(33.07, 52.28, -63.74)
CIE-LCHlch(33.07, 82.44, 309.36°)
OKLaboklab(44.66% 0.0798 -0.1828)
OKLCHoklch(44.66% 0.199 293.6)
XYZxyz(13.9582, 7.5700, 44.4328)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CB5 #82B52C
analogous
#2C3DB5 #5F2CB5 #A42CB5
triadic
#5F2CB5 #B55F2C #2CB55F
tetradic
#5F2CB5 #B52C3D #82B52C #2CB5A4
square
#5F2CB5 #B52C3D #82B52C #2CB5A4
split-complementary
#5F2CB5 #B5A42C #3DB52C
monochromatic
#2B1453 #452084 #5F2CB5 #7E4BD3 #A17CDF

Accessibility & contrast

On white

8.35
#5F2CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5F2CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CB5
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CB5#FFFFFF#000000##FFFFFF
##5F2CB51.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#45516F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2cb5;
/* rgb */ color: rgb(95, 44, 181);
/* oklch */ color: oklch(44.7% 0.199 293.6);
Tailwind
colors: {
  custom: {
    50: '#956bcc',
    500: '#5f2cb5',
    950: '#000000',
  },
}
SCSS
$custom: #5f2cb5;
$custom-light: #956bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2cb5",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 262.336,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44657,
    "c": 0.19947,
    "h": 293.6
  },
  "luminance": 0.0757
}

Semantic roles & 50–950 ramp

primary
#5F2CB5
secondary
#A9C875
accent
#E444A8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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