#5E28AA#5E28AA

#5E28AA is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.192 H 296.2°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#5E28AA
RGBrgb(94, 40, 170)
HSLhsl(265, 62%, 41%)
HSVhsv(265, 76%, 67%)
CMYKcmyk(44.7%, 76.5%, 0%, 33.3%)
CIE-LABlab(31.35, 51.06, -60.00)
CIE-LCHlch(31.35, 78.79, 310.40°)
OKLaboklab(43.12% 0.0845 -0.1719)
OKLCHoklch(43.12% 0.192 296.2)
XYZxyz(12.6287, 6.7993, 38.6694)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E28AA #74AA28
analogous
#2833AA #5E28AA #9F28AA
triadic
#5E28AA #AA5E28 #28AA5E
tetradic
#5E28AA #AA2833 #74AA28 #28AA9F
square
#5E28AA #AA2833 #74AA28 #28AA9F
split-complementary
#5E28AA #AA9F28 #33AA28
monochromatic
#271147 #431C78 #5E28AA #7B3ED2 #9D6FDD

Accessibility & contrast

On white

8.90
#5E28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5E28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E28AA
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E28AA#FFFFFF#000000##FFFFFF
##5E28AA1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0048A8
Tritanopia (blue-blind)
#494B68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e28aa;
/* rgb */ color: rgb(94, 40, 170);
/* oklch */ color: oklch(43.1% 0.192 296.2);
Tailwind
colors: {
  custom: {
    50: '#9368c4',
    500: '#5e28aa',
    950: '#000000',
  },
}
SCSS
$custom: #5e28aa;
$custom-light: #9368c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e28aa",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 264.923,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43122,
    "c": 0.19152,
    "h": 296.2
  },
  "luminance": 0.068
}

Semantic roles & 50–950 ramp

primary
#5E28AA
secondary
#9FC46A
accent
#E543A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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