#5F2A92#5F2A92

#5F2A92 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.163 H 303.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#5F2A92
RGBrgb(95, 42, 146)
HSLhsl(271, 55%, 37%)
HSVhsv(271, 71%, 57%)
CMYKcmyk(34.9%, 71.2%, 0%, 42.7%)
CIE-LABlab(29.82, 44.17, -47.89)
CIE-LCHlch(29.82, 65.15, 312.69°)
OKLaboklab(41.46% 0.0893 -0.1363)
OKLCHoklch(41.46% 0.163 303.2)
XYZxyz(10.7344, 6.1642, 27.8128)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2A92 #5D922A
analogous
#2B2A92 #5F2A92 #922A91
triadic
#5F2A92 #925F2A #2A925F
tetradic
#5F2A92 #922B2A #5D922A #2A9192
square
#5F2A92 #922B2A #5D922A #2A9192
split-complementary
#5F2A92 #91922A #2A922B
monochromatic
#210F33 #401C62 #5F2A92 #7E38C2 #9C64D2

Accessibility & contrast

On white

9.41
#5F2A92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2A92
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2A92#FFFFFF#000000##FFFFFF
##5F2A921.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004595
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#55425B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2a92;
/* rgb */ color: rgb(95, 42, 146);
/* oklch */ color: oklch(41.5% 0.163 303.2);
Tailwind
colors: {
  custom: {
    50: '#9168b3',
    500: '#5f2a92',
    950: '#000000',
  },
}
SCSS
$custom: #5f2a92;
$custom-light: #9168b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2a92",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 146
  },
  "hsl": {
    "h": 270.577,
    "s": 55.319,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41457,
    "c": 0.1629,
    "h": 303.2
  },
  "luminance": 0.06164
}

Semantic roles & 50–950 ramp

primary
#5F2A92
secondary
#8BB85F
accent
#DF4992
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2A92

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

Preview Lab → · Contrast checker → · Palette generator →

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