#5F2AAB#5F2AAB

#5F2AAB is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.191 H 296.2°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#5F2AAB
RGBrgb(95, 42, 171)
HSLhsl(265, 61%, 42%)
HSVhsv(265, 75%, 67%)
CMYKcmyk(44.4%, 75.4%, 0%, 32.9%)
CIE-LABlab(31.87, 50.58, -59.74)
CIE-LCHlch(31.87, 78.27, 310.26°)
OKLaboklab(43.55% 0.0841 -0.1711)
OKLCHoklch(43.55% 0.191 296.2)
XYZxyz(12.8960, 7.0288, 39.1974)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AAB #76AB2A
analogous
#2A36AB #5F2AAB #A02AAB
triadic
#5F2AAB #AB5F2A #2AAB5F
tetradic
#5F2AAB #AB2A36 #76AB2A #2AABA0
square
#5F2AAB #AB2A36 #76AB2A #2AABA0
split-complementary
#5F2AAB #ABA02A #36AB2A
monochromatic
#281249 #441E7A #5F2AAB #7C42D1 #9E73DD

Accessibility & contrast

On white

8.73
#5F2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5F2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AAB
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AAB#FFFFFF#000000##FFFFFF
##5F2AAB1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#4A4C69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2aab;
/* rgb */ color: rgb(95, 42, 171);
/* oklch */ color: oklch(43.5% 0.191 296.2);
Tailwind
colors: {
  custom: {
    50: '#9469c5',
    500: '#5f2aab',
    950: '#000000',
  },
}
SCSS
$custom: #5f2aab;
$custom-light: #9469c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2aab",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 264.651,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43546,
    "c": 0.19059,
    "h": 296.2
  },
  "luminance": 0.07029
}

Semantic roles & 50–950 ramp

primary
#5F2AAB
secondary
#A0C46D
accent
#E444A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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