#5F2AA9#5F2AA9

#5F2AA9 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.188 H 296.7°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5F2AA9
RGBrgb(95, 42, 169)
HSLhsl(265, 60%, 41%)
HSVhsv(265, 75%, 66%)
CMYKcmyk(43.8%, 75.1%, 0%, 33.7%)
CIE-LABlab(31.70, 50.06, -58.82)
CIE-LCHlch(31.70, 77.24, 310.40°)
OKLaboklab(43.37% 0.0846 -0.1684)
OKLCHoklch(43.37% 0.188 296.7)
XYZxyz(12.7068, 6.9531, 38.2010)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AA9 #74A92A
analogous
#2A35A9 #5F2AA9 #9F2AA9
triadic
#5F2AA9 #A95F2A #2AA95F
tetradic
#5F2AA9 #A92A35 #74A92A #2AA99F
square
#5F2AA9 #A92A35 #74A92A #2AA99F
split-complementary
#5F2AA9 #A99F2A #35A92A
monochromatic
#281247 #431E78 #5F2AA9 #7C41D0 #9E72DC

Accessibility & contrast

On white

8.78
#5F2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5F2AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AA9
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AA9#FFFFFF#000000##FFFFFF
##5F2AA91.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#4B4B68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2aa9;
/* rgb */ color: rgb(95, 42, 169);
/* oklch */ color: oklch(43.4% 0.188 296.7);
Tailwind
colors: {
  custom: {
    50: '#9369c4',
    500: '#5f2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #5f2aa9;
$custom-light: #9369c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2aa9",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 265.039,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43371,
    "c": 0.1884,
    "h": 296.7
  },
  "luminance": 0.06953
}

Semantic roles & 50–950 ramp

primary
#5F2AA9
secondary
#9FC36C
accent
#E344A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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