#5E289E#5E289E

#5E289E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.178 H 299.4°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5E289E
RGBrgb(94, 40, 158)
HSLhsl(267, 60%, 39%)
HSVhsv(267, 75%, 62%)
CMYKcmyk(40.5%, 74.7%, 0%, 38%)
CIE-LABlab(30.32, 47.98, -54.43)
CIE-LCHlch(30.32, 72.56, 311.39°)
OKLaboklab(42.08% 0.0875 -0.1555)
OKLCHoklch(42.08% 0.178 299.4)
XYZxyz(11.5449, 6.3657, 32.9616)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E289E #689E28
analogous
#282D9E #5E289E #99289E
triadic
#5E289E #9E5E28 #289E5E
tetradic
#5E289E #9E282D #689E28 #289E99
square
#5E289E #9E282D #689E28 #289E99
split-complementary
#5E289E #9E9928 #2D9E28
monochromatic
#240F3C #411C6D #5E289E #7B37CC #9B68D9

Accessibility & contrast

On white

9.24
#5E289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5E289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E289E
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E289E#FFFFFF#000000##FFFFFF
##5E289E1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#4F4661
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e289e;
/* rgb */ color: rgb(94, 40, 158);
/* oklch */ color: oklch(42.1% 0.178 299.4);
Tailwind
colors: {
  custom: {
    50: '#9267bc',
    500: '#5e289e',
    950: '#000000',
  },
}
SCSS
$custom: #5e289e;
$custom-light: #9267bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e289e",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 267.458,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4208,
    "c": 0.17844,
    "h": 299.4
  },
  "luminance": 0.06366
}

Semantic roles & 50–950 ramp

primary
#5E289E
secondary
#95BF63
accent
#E3459B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5E289E

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

Preview Lab → · Contrast checker → · Palette generator →

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