#5D289B#5D289B

#5D289B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.175 H 299.7°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5D289B
RGBrgb(93, 40, 155)
HSLhsl(268, 59%, 38%)
HSVhsv(268, 74%, 61%)
CMYKcmyk(40%, 74.2%, 0%, 39.2%)
CIE-LABlab(29.94, 47.03, -53.23)
CIE-LCHlch(29.94, 71.03, 311.46°)
OKLaboklab(41.71% 0.0867 -0.152)
OKLCHoklch(41.71% 0.175 299.7)
XYZxyz(11.1879, 6.2112, 31.6134)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D289B #669B28
analogous
#282D9B #5D289B #96289B
triadic
#5D289B #9B5D28 #289B5D
tetradic
#5D289B #9B282D #669B28 #289B96
square
#5D289B #9B282D #669B28 #289B96
split-complementary
#5D289B #9B9628 #2D9B28
monochromatic
#230F3A #401B6A #5D289B #7A35CB #9A66D7

Accessibility & contrast

On white

9.37
#5D289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5D289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D289B
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D289B#FFFFFF#000000##FFFFFF
##5D289B1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#4F455F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d289b;
/* rgb */ color: rgb(93, 40, 155);
/* oklch */ color: oklch(41.7% 0.175 299.7);
Tailwind
colors: {
  custom: {
    50: '#9167b9',
    500: '#5d289b',
    950: '#000000',
  },
}
SCSS
$custom: #5d289b;
$custom-light: #9167b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d289b",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 267.652,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41708,
    "c": 0.17498,
    "h": 299.7
  },
  "luminance": 0.06211
}

Semantic roles & 50–950 ramp

primary
#5D289B
secondary
#93BD61
accent
#E2469A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D289B

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

Preview Lab → · Contrast checker → · Palette generator →

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