#5E28B1#5E28B1

#5E28B1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.199 H 294.5°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5E28B1
RGBrgb(94, 40, 177)
HSLhsl(264, 63%, 43%)
HSVhsv(264, 77%, 69%)
CMYKcmyk(46.9%, 77.4%, 0%, 30.6%)
CIE-LABlab(31.97, 52.88, -63.17)
CIE-LCHlch(31.97, 82.38, 309.93°)
OKLaboklab(43.75% 0.0826 -0.1812)
OKLCHoklch(43.75% 0.199 294.5)
XYZxyz(13.3085, 7.0712, 42.2501)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E28B1 #7BB128
analogous
#2836B1 #5E28B1 #A328B1
triadic
#5E28B1 #B15E28 #28B15E
tetradic
#5E28B1 #B12836 #7BB128 #28B1A3
square
#5E28B1 #B12836 #7BB128 #28B1A3
split-complementary
#5E28B1 #B1A328 #36B128
monochromatic
#29114D #431D7F #5E28B1 #7C42D4 #9E74E0

Accessibility & contrast

On white

8.70
#5E28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5E28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E28B1
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E28B1#FFFFFF#000000##FFFFFF
##5E28B11.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#454E6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e28b1;
/* rgb */ color: rgb(94, 40, 177);
/* oklch */ color: oklch(43.7% 0.199 294.5);
Tailwind
colors: {
  custom: {
    50: '#9468c9',
    500: '#5e28b1',
    950: '#000000',
  },
}
SCSS
$custom: #5e28b1;
$custom-light: #9468c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e28b1",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 263.65,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43749,
    "c": 0.19911,
    "h": 294.5
  },
  "luminance": 0.07072
}

Semantic roles & 50–950 ramp

primary
#5E28B1
secondary
#A4C76E
accent
#E642A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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