#5D288C#5D288C

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

Color values

HEX#5D288C
RGBrgb(93, 40, 140)
HSLhsl(272, 56%, 35%)
HSVhsv(272, 71%, 55%)
CMYKcmyk(33.6%, 71.4%, 0%, 45.1%)
CIE-LABlab(28.74, 43.23, -45.95)
CIE-LCHlch(28.74, 63.09, 313.25°)
OKLaboklab(40.48% 0.0895 -0.1306)
OKLCHoklch(40.48% 0.158 304.4)
XYZxyz(10.0055, 5.7382, 25.3863)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D288C #578C28
analogous
#2B288C #5D288C #8C2889
triadic
#5D288C #8C5D28 #288C5D
tetradic
#5D288C #8C2B28 #578C28 #28898C
square
#5D288C #8C2B28 #578C28 #28898C
split-complementary
#5D288C #898C28 #288C2B
monochromatic
#1E0D2D #3D1A5C #5D288C #7D36BC #9B5ED1

Accessibility & contrast

On white

9.78
#5D288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5D288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D288C
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D288C#FFFFFF#000000##FFFFFF
##5D288C1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00448A
Tritanopia (blue-blind)
#543F57
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d288c;
/* rgb */ color: rgb(93, 40, 140);
/* oklch */ color: oklch(40.5% 0.158 304.4);
Tailwind
colors: {
  custom: {
    50: '#8f66ae',
    500: '#5d288c',
    950: '#000000',
  },
}
SCSS
$custom: #5d288c;
$custom-light: #8f66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d288c",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 271.8,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40483,
    "c": 0.15835,
    "h": 304.4
  },
  "luminance": 0.05738
}

Semantic roles & 50–950 ramp

primary
#5D288C
secondary
#85B65A
accent
#DF498F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D288C

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

Preview Lab → · Contrast checker → · Palette generator →

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