#5F2AA7#5F2AA7

#5F2AA7 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.186 H 297.2°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5F2AA7
RGBrgb(95, 42, 167)
HSLhsl(265, 60%, 41%)
HSVhsv(265, 75%, 65%)
CMYKcmyk(43.1%, 74.9%, 0%, 34.5%)
CIE-LABlab(31.53, 49.54, -57.89)
CIE-LCHlch(31.53, 76.20, 310.55°)
OKLaboklab(43.2% 0.085 -0.1656)
OKLCHoklch(43.2% 0.186 297.2)
XYZxyz(12.5205, 6.8786, 37.2198)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AA7 #72A72A
analogous
#2A33A7 #5F2AA7 #9D2AA7
triadic
#5F2AA7 #A75F2A #2AA75F
tetradic
#5F2AA7 #A72A33 #72A72A #2AA79D
square
#5F2AA7 #A72A33 #72A72A #2AA79D
split-complementary
#5F2AA7 #A79D2A #33A72A
monochromatic
#271145 #431E76 #5F2AA7 #7C3FCF #9E70DB

Accessibility & contrast

On white

8.84
#5F2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5F2AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AA7
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AA7#FFFFFF#000000##FFFFFF
##5F2AA71.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#4C4B66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2aa7;
/* rgb */ color: rgb(95, 42, 167);
/* oklch */ color: oklch(43.2% 0.186 297.2);
Tailwind
colors: {
  custom: {
    50: '#9369c2',
    500: '#5f2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #5f2aa7;
$custom-light: #9369c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2aa7",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 265.44,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43198,
    "c": 0.1862,
    "h": 297.2
  },
  "luminance": 0.06879
}

Semantic roles & 50–950 ramp

primary
#5F2AA7
secondary
#9DC26B
accent
#E345A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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