#5F2A91#5F2A91

#5F2A91 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.162 H 303.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5F2A91
RGBrgb(95, 42, 145)
HSLhsl(271, 55%, 37%)
HSVhsv(271, 71%, 57%)
CMYKcmyk(34.5%, 71%, 0%, 43.1%)
CIE-LABlab(29.75, 43.92, -47.40)
CIE-LCHlch(29.75, 64.62, 312.82°)
OKLaboklab(41.38% 0.0894 -0.1348)
OKLCHoklch(41.38% 0.162 303.6)
XYZxyz(10.6569, 6.1332, 27.4050)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2A91 #5C912A
analogous
#2C2A91 #5F2A91 #912A90
triadic
#5F2A91 #915F2A #2A915F
tetradic
#5F2A91 #912C2A #5C912A #2A9091
square
#5F2A91 #912C2A #5C912A #2A9091
split-complementary
#5F2A91 #90912A #2A912C
monochromatic
#210F32 #401C62 #5F2A91 #7E38C0 #9C63D2

Accessibility & contrast

On white

9.43
#5F2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5F2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2A91
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2A91#FFFFFF#000000##FFFFFF
##5F2A911.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#55425A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2a91;
/* rgb */ color: rgb(95, 42, 145);
/* oklch */ color: oklch(41.4% 0.162 303.6);
Tailwind
colors: {
  custom: {
    50: '#9168b2',
    500: '#5f2a91',
    950: '#000000',
  },
}
SCSS
$custom: #5f2a91;
$custom-light: #9168b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2a91",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 270.874,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41378,
    "c": 0.16178,
    "h": 303.6
  },
  "luminance": 0.06133
}

Semantic roles & 50–950 ramp

primary
#5F2A91
secondary
#8AB85F
accent
#DE4992
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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