#5F2C92#5F2C92

#5F2C92 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.160 H 302.9°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5F2C92
RGBrgb(95, 44, 146)
HSLhsl(270, 54%, 37%)
HSVhsv(270, 70%, 57%)
CMYKcmyk(34.9%, 69.9%, 0%, 42.7%)
CIE-LABlab(30.18, 43.18, -47.31)
CIE-LCHlch(30.18, 64.05, 312.38°)
OKLaboklab(41.71% 0.0871 -0.1346)
OKLCHoklch(41.71% 0.16 302.9)
XYZxyz(10.8071, 6.3096, 27.8371)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C92 #5F922C
analogous
#2C2C92 #5F2C92 #922C92
triadic
#5F2C92 #925F2C #2C925F
tetradic
#5F2C92 #922C2C #5F922C #2C9292
square
#5F2C92 #922C2C #5F922C #2C9292
split-complementary
#5F2C92 #92922C #2C922C
monochromatic
#221034 #401E63 #5F2C92 #7E3AC1 #9C67D1

Accessibility & contrast

On white

9.28
#5F2C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5F2C92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2C92
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C92#FFFFFF#000000##FFFFFF
##5F2C921.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004695
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#55435B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f2c92;
/* rgb */ color: rgb(95, 44, 146);
/* oklch */ color: oklch(41.7% 0.160 302.9);
Tailwind
colors: {
  custom: {
    50: '#9169b3',
    500: '#5f2c92',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c92;
$custom-light: #9169b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c92",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 146
  },
  "hsl": {
    "h": 270,
    "s": 53.684,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41712,
    "c": 0.16028,
    "h": 302.9
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#5F2C92
secondary
#8DB862
accent
#DD4B94
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2C92

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

Preview Lab → · Contrast checker → · Palette generator →

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