#5F2DAB#5F2DAB

#5F2DAB is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.187 H 295.7°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5F2DAB
RGBrgb(95, 45, 171)
HSLhsl(264, 58%, 42%)
HSVhsv(264, 74%, 67%)
CMYKcmyk(44.4%, 73.7%, 0%, 32.9%)
CIE-LABlab(32.37, 49.17, -58.93)
CIE-LCHlch(32.37, 76.75, 309.84°)
OKLaboklab(43.9% 0.0814 -0.1687)
OKLCHoklch(43.9% 0.187 295.7)
XYZxyz(13.0064, 7.2496, 39.2342)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DAB #79AB2D
analogous
#2D3AAB #5F2DAB #9E2DAB
triadic
#5F2DAB #AB5F2D #2DAB5F
tetradic
#5F2DAB #AB2D3A #79AB2D #2DAB9E
square
#5F2DAB #AB2D3A #79AB2D #2DAB9E
split-complementary
#5F2DAB #AB9E2D #3AAB2D
monochromatic
#29144A #44207B #5F2DAB #7D47CE #9F77DB

Accessibility & contrast

On white

8.57
#5F2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5F2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DAB
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DAB#FFFFFF#000000##FFFFFF
##5F2DAB1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#4A4E69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2dab;
/* rgb */ color: rgb(95, 45, 171);
/* oklch */ color: oklch(43.9% 0.187 295.7);
Tailwind
colors: {
  custom: {
    50: '#936bc5',
    500: '#5f2dab',
    950: '#000000',
  },
}
SCSS
$custom: #5f2dab;
$custom-light: #936bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2dab",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 263.81,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43896,
    "c": 0.18729,
    "h": 295.7
  },
  "luminance": 0.0725
}

Semantic roles & 50–950 ramp

primary
#5F2DAB
secondary
#A2C371
accent
#E246A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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