#5E28BB#5E28BB

#5E28BB is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.7% C 0.210 H 292.3°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#5E28BB
RGBrgb(94, 40, 187)
HSLhsl(262, 65%, 45%)
HSVhsv(262, 79%, 73%)
CMYKcmyk(49.7%, 78.6%, 0%, 26.7%)
CIE-LABlab(32.89, 55.48, -67.60)
CIE-LCHlch(32.89, 87.45, 309.37°)
OKLaboklab(44.67% 0.0797 -0.1941)
OKLCHoklch(44.67% 0.21 292.3)
XYZxyz(14.3420, 7.4846, 47.6931)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E28BB #85BB28
analogous
#283BBB #5E28BB #A828BB
triadic
#5E28BB #BB5E28 #28BB5E
tetradic
#5E28BB #BB283B #85BB28 #28BBA8
square
#5E28BB #BB283B #85BB28 #28BBA8
split-complementary
#5E28BB #BBA828 #3BBB28
monochromatic
#2B1256 #451D89 #5E28BB #7D48D8 #A17BE3

Accessibility & contrast

On white

8.41
#5E28BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5E28BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E28BB
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E28BB#FFFFFF#000000##FFFFFF
##5E28BB1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#004AB8
Tritanopia (blue-blind)
#3F5271
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e28bb;
/* rgb */ color: rgb(94, 40, 187);
/* oklch */ color: oklch(44.7% 0.210 292.3);
Tailwind
colors: {
  custom: {
    50: '#9569d1',
    500: '#5e28bb',
    950: '#000000',
  },
}
SCSS
$custom: #5e28bb;
$custom-light: #9569d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e28bb",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 262.041,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44668,
    "c": 0.20985,
    "h": 292.3
  },
  "luminance": 0.07485
}

Semantic roles & 50–950 ramp

primary
#5E28BB
secondary
#ABCB74
accent
#E840AA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5E28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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