#5D288F#5D288F

#5D288F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.162 H 303.4°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#5D288F
RGBrgb(93, 40, 143)
HSLhsl(271, 56%, 36%)
HSVhsv(271, 72%, 56%)
CMYKcmyk(35%, 72%, 0%, 43.9%)
CIE-LABlab(28.97, 43.98, -47.43)
CIE-LCHlch(28.97, 64.69, 312.84°)
OKLaboklab(40.72% 0.089 -0.135)
OKLCHoklch(40.72% 0.162 303.4)
XYZxyz(10.2298, 5.8279, 26.5672)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D288F #5A8F28
analogous
#2A288F #5D288F #8F288D
triadic
#5D288F #8F5D28 #288F5D
tetradic
#5D288F #8F2A28 #5A8F28 #288D8F
square
#5D288F #8F2A28 #5A8F28 #288D8F
split-complementary
#5D288F #8D8F28 #288F2A
monochromatic
#1F0D2F #3E1B5F #5D288F #7C35BF #9A5FD2

Accessibility & contrast

On white

9.70
#5D288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5D288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D288F
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D288F#FFFFFF#000000##FFFFFF
##5D288F1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#534058
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d288f;
/* rgb */ color: rgb(93, 40, 143);
/* oklch */ color: oklch(40.7% 0.162 303.4);
Tailwind
colors: {
  custom: {
    50: '#8f67b1',
    500: '#5d288f',
    950: '#000000',
  },
}
SCSS
$custom: #5d288f;
$custom-light: #8f67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d288f",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 270.874,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40721,
    "c": 0.16168,
    "h": 303.4
  },
  "luminance": 0.05828
}

Semantic roles & 50–950 ramp

primary
#5D288F
secondary
#88B85B
accent
#E04892
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D288F

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

Preview Lab → · Contrast checker → · Palette generator →

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