#5F2DA4#5F2DA4

#5F2DA4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.179 H 297.5°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#5F2DA4
RGBrgb(95, 45, 164)
HSLhsl(265, 57%, 41%)
HSVhsv(265, 73%, 64%)
CMYKcmyk(42.1%, 72.6%, 0%, 35.7%)
CIE-LABlab(31.78, 47.33, -55.67)
CIE-LCHlch(31.78, 73.07, 310.37°)
OKLaboklab(43.3% 0.0829 -0.1591)
OKLCHoklch(43.3% 0.179 297.5)
XYZxyz(12.3568, 6.9898, 35.8129)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DA4 #72A42D
analogous
#2D36A4 #5F2DA4 #9A2DA4
triadic
#5F2DA4 #A45F2D #2DA45F
tetradic
#5F2DA4 #A42D36 #72A42D #2DA49A
square
#5F2DA4 #A42D36 #72A42D #2DA49A
split-complementary
#5F2DA4 #A49A2D #36A42D
monochromatic
#271344 #432074 #5F2DA4 #7C43CB #9E73D9

Accessibility & contrast

On white

8.76
#5F2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5F2DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DA4
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DA4#FFFFFF#000000##FFFFFF
##5F2DA41.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#4E4B66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2da4;
/* rgb */ color: rgb(95, 45, 164);
/* oklch */ color: oklch(43.3% 0.179 297.5);
Tailwind
colors: {
  custom: {
    50: '#936ac0',
    500: '#5f2da4',
    950: '#000000',
  },
}
SCSS
$custom: #5f2da4;
$custom-light: #936ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2da4",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 265.21,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.433,
    "c": 0.17942,
    "h": 297.5
  },
  "luminance": 0.0699
}

Semantic roles & 50–950 ramp

primary
#5F2DA4
secondary
#9DC06D
accent
#E048A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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