#5D2F96#5D2F96

#5D2F96 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.161 H 300.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5D2F96
RGBrgb(93, 47, 150)
HSLhsl(267, 52%, 39%)
HSVhsv(267, 69%, 59%)
CMYKcmyk(38%, 68.7%, 0%, 41.2%)
CIE-LABlab(30.79, 42.24, -48.79)
CIE-LCHlch(30.79, 64.54, 310.88°)
OKLaboklab(42.19% 0.0803 -0.139)
OKLCHoklch(42.19% 0.161 300)
XYZxyz(11.0344, 6.5621, 29.5335)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F96 #68962F
analogous
#2F3496 #5D2F96 #902F96
triadic
#5D2F96 #965D2F #2F965D
tetradic
#5D2F96 #962F34 #68962F #2F9690
square
#5D2F96 #962F34 #68962F #2F9690
split-complementary
#5D2F96 #96902F #34962F
monochromatic
#231239 #402067 #5D2F96 #7A3FC3 #9A6ED2

Accessibility & contrast

On white

9.08
#5D2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5D2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2F96
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F96#FFFFFF#000000##FFFFFF
##5D2F961.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#50475E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2f96;
/* rgb */ color: rgb(93, 47, 150);
/* oklch */ color: oklch(42.2% 0.161 300.0);
Tailwind
colors: {
  custom: {
    50: '#906bb6',
    500: '#5d2f96',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f96;
$custom-light: #906bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f96",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 266.796,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42187,
    "c": 0.16051,
    "h": 300
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

primary
#5D2F96
secondary
#95B968
accent
#DC4C9C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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