#5D2297#5D2297

#5D2297 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.177 H 301.7°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#5D2297
RGBrgb(93, 34, 151)
HSLhsl(270, 63%, 36%)
HSVhsv(270, 77%, 59%)
CMYKcmyk(38.4%, 77.5%, 0%, 40.8%)
CIE-LABlab(28.66, 48.72, -52.87)
CIE-LCHlch(28.66, 71.90, 312.66°)
OKLaboklab(40.7% 0.0932 -0.1509)
OKLCHoklch(40.7% 0.177 301.7)
XYZxyz(10.6708, 5.7055, 29.8113)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2297 #5C9722
analogous
#222297 #5D2297 #972297
triadic
#5D2297 #975D22 #22975D
tetradic
#5D2297 #972222 #5C9722 #229797
square
#5D2297 #972222 #5C9722 #229797
split-complementary
#5D2297 #979722 #229722
monochromatic
#1F0C33 #3E1765 #5D2297 #7C2DC9 #9A5ADA

Accessibility & contrast

On white

9.81
#5D2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5D2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2297
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2297#FFFFFF#000000##FFFFFF
##5D22971.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#50405B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2297;
/* rgb */ color: rgb(93, 34, 151);
/* oklch */ color: oklch(40.7% 0.177 301.7);
Tailwind
colors: {
  custom: {
    50: '#9164b6',
    500: '#5d2297',
    950: '#000000',
  },
}
SCSS
$custom: #5d2297;
$custom-light: #9164b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2297",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 270.256,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40701,
    "c": 0.17739,
    "h": 301.7
  },
  "luminance": 0.05706
}

Semantic roles & 50–950 ramp

primary
#5D2297
secondary
#8ABE57
accent
#E64293
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2297

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

Preview Lab → · Contrast checker → · Palette generator →

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