#5F2AA4#5F2AA4

#5F2AA4 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.183 H 298.0°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5F2AA4
RGBrgb(95, 42, 164)
HSLhsl(266, 59%, 40%)
HSVhsv(266, 74%, 64%)
CMYKcmyk(42.1%, 74.4%, 0%, 35.7%)
CIE-LABlab(31.28, 48.77, -56.50)
CIE-LCHlch(31.28, 74.64, 310.80°)
OKLaboklab(42.94% 0.0857 -0.1616)
OKLCHoklch(42.94% 0.183 298)
XYZxyz(12.2464, 6.7690, 35.7761)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AA4 #6FA42A
analogous
#2A32A4 #5F2AA4 #9C2AA4
triadic
#5F2AA4 #A45F2A #2AA45F
tetradic
#5F2AA4 #A42A32 #6FA42A #2AA49C
square
#5F2AA4 #A42A32 #6FA42A #2AA49C
split-complementary
#5F2AA4 #A49C2A #32A42A
monochromatic
#271143 #431E73 #5F2AA4 #7C3ECD #9D6EDA

Accessibility & contrast

On white

8.92
#5F2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5F2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AA4
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AA4#FFFFFF#000000##FFFFFF
##5F2AA41.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#4E4965
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2aa4;
/* rgb */ color: rgb(95, 42, 164);
/* oklch */ color: oklch(42.9% 0.183 298.0);
Tailwind
colors: {
  custom: {
    50: '#9369c0',
    500: '#5f2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #5f2aa4;
$custom-light: #9369c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2aa4",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 266.066,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4294,
    "c": 0.1829,
    "h": 298
  },
  "luminance": 0.06769
}

Semantic roles & 50–950 ramp

primary
#5F2AA4
secondary
#9BC169
accent
#E2459E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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