#5F2DA9#5F2DA9

#5F2DA9 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.185 H 296.2°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#5F2DA9
RGBrgb(95, 45, 169)
HSLhsl(264, 58%, 42%)
HSVhsv(264, 73%, 66%)
CMYKcmyk(43.8%, 73.4%, 0%, 33.7%)
CIE-LABlab(32.20, 48.64, -58.00)
CIE-LCHlch(32.20, 75.70, 309.99°)
OKLaboklab(43.72% 0.0818 -0.166)
OKLCHoklch(43.72% 0.185 296.2)
XYZxyz(12.8172, 7.1740, 38.2378)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DA9 #77A92D
analogous
#2D39A9 #5F2DA9 #9D2DA9
triadic
#5F2DA9 #A95F2D #2DA95F
tetradic
#5F2DA9 #A92D39 #77A92D #2DA99D
square
#5F2DA9 #A92D39 #77A92D #2DA99D
split-complementary
#5F2DA9 #A99D2D #39A92D
monochromatic
#291348 #442079 #5F2DA9 #7C46CE #9E76DA

Accessibility & contrast

On white

8.62
#5F2DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5F2DA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DA9
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DA9#FFFFFF#000000##FFFFFF
##5F2DA91.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#004AA7
Tritanopia (blue-blind)
#4B4D68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2da9;
/* rgb */ color: rgb(95, 45, 169);
/* oklch */ color: oklch(43.7% 0.185 296.2);
Tailwind
colors: {
  custom: {
    50: '#936bc4',
    500: '#5f2da9',
    950: '#000000',
  },
}
SCSS
$custom: #5f2da9;
$custom-light: #936bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2da9",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 264.194,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43724,
    "c": 0.18505,
    "h": 296.2
  },
  "luminance": 0.07174
}

Semantic roles & 50–950 ramp

primary
#5F2DA9
secondary
#A1C26F
accent
#E147A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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