#5F2292#5F2292

#5F2292 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.173 H 304.4°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5F2292
RGBrgb(95, 34, 146)
HSLhsl(273, 62%, 35%)
HSVhsv(273, 77%, 57%)
CMYKcmyk(34.9%, 76.7%, 0%, 42.7%)
CIE-LABlab(28.52, 47.86, -50.01)
CIE-LCHlch(28.52, 69.23, 313.74°)
OKLaboklab(40.53% 0.0974 -0.1424)
OKLCHoklch(40.53% 0.173 304.4)
XYZxyz(10.4785, 5.6523, 27.7275)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2292 #559222
analogous
#272292 #5F2292 #92228D
triadic
#5F2292 #925F22 #22925F
tetradic
#5F2292 #922722 #559222 #228D92
square
#5F2292 #922722 #559222 #228D92
split-complementary
#5F2292 #8D9222 #229227
monochromatic
#1E0B2F #3F1660 #5F2292 #7F2EC4 #9D57D8

Accessibility & contrast

On white

9.86
#5F2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5F2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2292
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2292#FFFFFF#000000##FFFFFF
##5F22921.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#004390
Tritanopia (blue-blind)
#553E59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2292;
/* rgb */ color: rgb(95, 34, 146);
/* oklch */ color: oklch(40.5% 0.173 304.4);
Tailwind
colors: {
  custom: {
    50: '#9164b3',
    500: '#5f2292',
    950: '#000000',
  },
}
SCSS
$custom: #5f2292;
$custom-light: #9164b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2292",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 272.679,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40533,
    "c": 0.17255,
    "h": 304.4
  },
  "luminance": 0.05652
}

Semantic roles & 50–950 ramp

primary
#5F2292
secondary
#83BC54
accent
#E5438D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2292

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

Preview Lab → · Contrast checker → · Palette generator →

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