#5D288B#5D288B

#5D288B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.157 H 304.8°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5D288B
RGBrgb(93, 40, 139)
HSLhsl(272, 55%, 35%)
HSVhsv(272, 71%, 55%)
CMYKcmyk(33.1%, 71.2%, 0%, 45.5%)
CIE-LABlab(28.67, 42.98, -45.46)
CIE-LCHlch(28.67, 62.56, 313.40°)
OKLaboklab(40.41% 0.0897 -0.1292)
OKLCHoklch(40.41% 0.157 304.8)
XYZxyz(9.9321, 5.7089, 24.9998)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D288B #568B28
analogous
#2B288B #5D288B #8B2887
triadic
#5D288B #8B5D28 #288B5D
tetradic
#5D288B #8B2B28 #568B28 #28878B
square
#5D288B #8B2B28 #568B28 #28878B
split-complementary
#5D288B #878B28 #288B2B
monochromatic
#1D0D2C #3D1A5B #5D288B #7D36BB #9B5DD0

Accessibility & contrast

On white

9.80
#5D288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D288B
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D288B#FFFFFF#000000##FFFFFF
##5D288B1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004489
Tritanopia (blue-blind)
#543F56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d288b;
/* rgb */ color: rgb(93, 40, 139);
/* oklch */ color: oklch(40.4% 0.157 304.8);
Tailwind
colors: {
  custom: {
    50: '#8f66ae',
    500: '#5d288b',
    950: '#000000',
  },
}
SCSS
$custom: #5d288b;
$custom-light: #8f66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d288b",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 272.121,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40405,
    "c": 0.15723,
    "h": 304.8
  },
  "luminance": 0.05709
}

Semantic roles & 50–950 ramp

primary
#5D288B
secondary
#84B659
accent
#DF498F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D288B

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

Preview Lab → · Contrast checker → · Palette generator →

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