#5E289B#5E289B

#5E289B is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.175 H 300.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5E289B
RGBrgb(94, 40, 155)
HSLhsl(268, 59%, 38%)
HSVhsv(268, 74%, 61%)
CMYKcmyk(39.4%, 74.2%, 0%, 39.2%)
CIE-LABlab(30.07, 47.21, -53.01)
CIE-LCHlch(30.07, 70.99, 311.69°)
OKLaboklab(41.83% 0.0882 -0.1513)
OKLCHoklch(41.83% 0.175 300.2)
XYZxyz(11.2898, 6.2637, 31.6182)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E289B #659B28
analogous
#282B9B #5E289B #97289B
triadic
#5E289B #9B5E28 #289B5E
tetradic
#5E289B #9B282B #659B28 #289B97
square
#5E289B #9B282B #659B28 #289B97
split-complementary
#5E289B #9B9728 #2B9B28
monochromatic
#230F3A #401B6A #5E289B #7C35CB #9B66D7

Accessibility & contrast

On white

9.32
#5E289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5E289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E289B
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E289B#FFFFFF#000000##FFFFFF
##5E289B1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#50455F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e289b;
/* rgb */ color: rgb(94, 40, 155);
/* oklch */ color: oklch(41.8% 0.175 300.2);
Tailwind
colors: {
  custom: {
    50: '#9167b9',
    500: '#5e289b',
    950: '#000000',
  },
}
SCSS
$custom: #5e289b;
$custom-light: #9167b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e289b",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 268.174,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41827,
    "c": 0.17514,
    "h": 300.2
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

primary
#5E289B
secondary
#92BD61
accent
#E24699
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5E289B

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

Preview Lab → · Contrast checker → · Palette generator →

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