#5D2E97#5D2E97

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

Color values

HEX#5D2E97
RGBrgb(93, 46, 151)
HSLhsl(267, 53%, 39%)
HSVhsv(267, 70%, 59%)
CMYKcmyk(38.4%, 69.5%, 0%, 40.8%)
CIE-LABlab(30.68, 43.02, -49.59)
CIE-LCHlch(30.68, 65.65, 310.95°)
OKLaboklab(42.13% 0.0812 -0.1413)
OKLCHoklch(42.13% 0.163 299.9)
XYZxyz(11.0757, 6.5154, 29.9462)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E97 #68972E
analogous
#2E3497 #5D2E97 #912E97
triadic
#5D2E97 #975D2E #2E975D
tetradic
#5D2E97 #972E34 #68972E #2E9791
square
#5D2E97 #972E34 #68972E #2E9791
split-complementary
#5D2E97 #97912E #34972E
monochromatic
#231139 #402068 #5D2E97 #7A3EC4 #9A6DD2

Accessibility & contrast

On white

9.12
#5D2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2E97
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E97#FFFFFF#000000##FFFFFF
##5D2E971.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#50475F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2e97;
/* rgb */ color: rgb(93, 46, 151);
/* oklch */ color: oklch(42.1% 0.163 299.9);
Tailwind
colors: {
  custom: {
    50: '#906ab6',
    500: '#5d2e97',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e97;
$custom-light: #906ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e97",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 266.857,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42132,
    "c": 0.16301,
    "h": 299.9
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#5D2E97
secondary
#95BA67
accent
#DD4B9C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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