#5F2AA3#5F2AA3

#5F2AA3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.182 H 298.2°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5F2AA3
RGBrgb(95, 42, 163)
HSLhsl(266, 59%, 40%)
HSVhsv(266, 74%, 64%)
CMYKcmyk(41.7%, 74.2%, 0%, 36.1%)
CIE-LABlab(31.19, 48.51, -56.03)
CIE-LCHlch(31.19, 74.11, 310.88°)
OKLaboklab(42.86% 0.086 -0.1602)
OKLCHoklch(42.86% 0.182 298.2)
XYZxyz(12.1564, 6.7330, 35.3024)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AA3 #6EA32A
analogous
#2A32A3 #5F2AA3 #9B2AA3
triadic
#5F2AA3 #A35F2A #2AA35F
tetradic
#5F2AA3 #A32A32 #6EA32A #2AA39B
square
#5F2AA3 #A32A32 #6EA32A #2AA39B
split-complementary
#5F2AA3 #A39B2A #32A32A
monochromatic
#261142 #431D72 #5F2AA3 #7C3DCD #9D6EDA

Accessibility & contrast

On white

8.95
#5F2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2AA3
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AA3#FFFFFF#000000##FFFFFF
##5F2AA31.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#4E4964
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2aa3;
/* rgb */ color: rgb(95, 42, 163);
/* oklch */ color: oklch(42.9% 0.182 298.2);
Tailwind
colors: {
  custom: {
    50: '#9369bf',
    500: '#5f2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #5f2aa3;
$custom-light: #9369bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2aa3",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 266.281,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42855,
    "c": 0.18179,
    "h": 298.2
  },
  "luminance": 0.06733
}

Semantic roles & 50–950 ramp

primary
#5F2AA3
secondary
#9AC068
accent
#E2469E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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