#5F2AA8#5F2AA8

#5F2AA8 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.187 H 296.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5F2AA8
RGBrgb(95, 42, 168)
HSLhsl(265, 60%, 41%)
HSVhsv(265, 75%, 66%)
CMYKcmyk(43.5%, 75%, 0%, 34.1%)
CIE-LABlab(31.61, 49.80, -58.36)
CIE-LCHlch(31.61, 76.72, 310.48°)
OKLaboklab(43.29% 0.0848 -0.167)
OKLCHoklch(43.29% 0.187 296.9)
XYZxyz(12.6133, 6.9157, 37.7085)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AA8 #73A82A
analogous
#2A34A8 #5F2AA8 #9E2AA8
triadic
#5F2AA8 #A85F2A #2AA85F
tetradic
#5F2AA8 #A82A34 #73A82A #2AA89E
square
#5F2AA8 #A82A34 #73A82A #2AA89E
split-complementary
#5F2AA8 #A89E2A #34A82A
monochromatic
#281246 #431E77 #5F2AA8 #7C40CF #9E71DB

Accessibility & contrast

On white

8.81
#5F2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2AA8
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AA8#FFFFFF#000000##FFFFFF
##5F2AA81.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#4C4B67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2aa8;
/* rgb */ color: rgb(95, 42, 168);
/* oklch */ color: oklch(43.3% 0.187 296.9);
Tailwind
colors: {
  custom: {
    50: '#9369c3',
    500: '#5f2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #5f2aa8;
$custom-light: #9369c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2aa8",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 265.238,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43285,
    "c": 0.1873,
    "h": 296.9
  },
  "luminance": 0.06916
}

Semantic roles & 50–950 ramp

primary
#5F2AA8
secondary
#9EC36B
accent
#E345A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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