#5F2AA5#5F2AA5

#5F2AA5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.184 H 297.7°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5F2AA5
RGBrgb(95, 42, 165)
HSLhsl(266, 59%, 41%)
HSVhsv(266, 75%, 65%)
CMYKcmyk(42.4%, 74.5%, 0%, 35.3%)
CIE-LABlab(31.36, 49.02, -56.97)
CIE-LCHlch(31.36, 75.16, 310.71°)
OKLaboklab(43.03% 0.0855 -0.1629)
OKLCHoklch(43.03% 0.184 297.7)
XYZxyz(12.3370, 6.8052, 36.2536)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AA5 #70A52A
analogous
#2A32A5 #5F2AA5 #9C2AA5
triadic
#5F2AA5 #A55F2A #2AA55F
tetradic
#5F2AA5 #A52A32 #70A52A #2AA59C
square
#5F2AA5 #A52A32 #70A52A #2AA59C
split-complementary
#5F2AA5 #A59C2A #32A52A
monochromatic
#271143 #431E74 #5F2AA5 #7C3ECE #9D6FDA

Accessibility & contrast

On white

8.89
#5F2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5F2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AA5
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AA5#FFFFFF#000000##FFFFFF
##5F2AA51.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#4D4A65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2aa5;
/* rgb */ color: rgb(95, 42, 165);
/* oklch */ color: oklch(43.0% 0.184 297.7);
Tailwind
colors: {
  custom: {
    50: '#9369c1',
    500: '#5f2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #5f2aa5;
$custom-light: #9369c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2aa5",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 265.854,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43026,
    "c": 0.18399,
    "h": 297.7
  },
  "luminance": 0.06805
}

Semantic roles & 50–950 ramp

primary
#5F2AA5
secondary
#9BC169
accent
#E3459F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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