#5D2E96#5D2E96

#5D2E96 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.162 H 300.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#5D2E96
RGBrgb(93, 46, 150)
HSLhsl(267, 53%, 38%)
HSVhsv(267, 69%, 59%)
CMYKcmyk(38%, 69.3%, 0%, 41.2%)
CIE-LABlab(30.60, 42.76, -49.10)
CIE-LCHlch(30.60, 65.11, 311.05°)
OKLaboklab(42.05% 0.0814 -0.1399)
OKLCHoklch(42.05% 0.162 300.2)
XYZxyz(10.9949, 6.4831, 29.5203)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E96 #67962E
analogous
#2E3396 #5D2E96 #912E96
triadic
#5D2E96 #965D2E #2E965D
tetradic
#5D2E96 #962E33 #67962E #2E9691
square
#5D2E96 #962E33 #67962E #2E9691
split-complementary
#5D2E96 #96912E #33962E
monochromatic
#231138 #402067 #5D2E96 #7A3EC4 #9A6CD2

Accessibility & contrast

On white

9.14
#5D2E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5D2E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E96
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E96#FFFFFF#000000##FFFFFF
##5D2E961.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d2e96;
/* rgb */ color: rgb(93, 46, 150);
/* oklch */ color: oklch(42.1% 0.162 300.2);
Tailwind
colors: {
  custom: {
    50: '#906ab6',
    500: '#5d2e96',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e96;
$custom-light: #906ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e96",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 267.115,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42052,
    "c": 0.16185,
    "h": 300.2
  },
  "luminance": 0.06483
}

Semantic roles & 50–950 ramp

primary
#5D2E96
secondary
#94B967
accent
#DC4B9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2E96

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

Preview Lab → · Contrast checker → · Palette generator →

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