#5B289F#5B289F

#5B289F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.179 H 297.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5B289F
RGBrgb(91, 40, 159)
HSLhsl(266, 60%, 39%)
HSVhsv(266, 75%, 62%)
CMYKcmyk(42.8%, 74.8%, 0%, 37.6%)
CIE-LABlab(30.02, 47.70, -55.54)
CIE-LCHlch(30.02, 73.21, 310.66°)
OKLaboklab(41.81% 0.0828 -0.1589)
OKLCHoklch(41.81% 0.179 297.5)
XYZxyz(11.3296, 6.2447, 33.4026)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B289F #6C9F28
analogous
#28319F #5B289F #97289F
triadic
#5B289F #9F5B28 #289F5B
tetradic
#5B289F #9F2831 #6C9F28 #289F97
square
#5B289F #9F2831 #6C9F28 #289F97
split-complementary
#5B289F #9F9728 #319F28
monochromatic
#230F3D #3F1C6E #5B289F #7737CD #9968D9

Accessibility & contrast

On white

9.34
#5B289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B289F
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B289F#FFFFFF#000000##FFFFFF
##5B289F1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#4A4761
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b289f;
/* rgb */ color: rgb(91, 40, 159);
/* oklch */ color: oklch(41.8% 0.179 297.5);
Tailwind
colors: {
  custom: {
    50: '#9067bc',
    500: '#5b289f',
    950: '#000000',
  },
}
SCSS
$custom: #5b289f;
$custom-light: #9067bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b289f",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 265.714,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41814,
    "c": 0.17914,
    "h": 297.5
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#5B289F
secondary
#98BF64
accent
#E3459F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B289F

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

Preview Lab → · Contrast checker → · Palette generator →

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