#5E28A4#5E28A4

#5E28A4 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.185 H 297.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5E28A4
RGBrgb(94, 40, 164)
HSLhsl(266, 61%, 40%)
HSVhsv(266, 76%, 64%)
CMYKcmyk(42.7%, 75.6%, 0%, 35.7%)
CIE-LABlab(30.82, 49.52, -57.24)
CIE-LCHlch(30.82, 75.69, 310.86°)
OKLaboklab(42.6% 0.0861 -0.1637)
OKLCHoklch(42.6% 0.185 297.7)
XYZxyz(12.0740, 6.5774, 35.7482)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E28A4 #6EA428
analogous
#2830A4 #5E28A4 #9C28A4
triadic
#5E28A4 #A45E28 #28A45E
tetradic
#5E28A4 #A42830 #6EA428 #28A49C
square
#5E28A4 #A42830 #6EA428 #28A49C
split-complementary
#5E28A4 #A49C28 #30A428
monochromatic
#261042 #421C73 #5E28A4 #7B3ACF #9C6BDB

Accessibility & contrast

On white

9.07
#5E28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5E28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E28A4
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E28A4#FFFFFF#000000##FFFFFF
##5E28A41.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#4C4964
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e28a4;
/* rgb */ color: rgb(94, 40, 164);
/* oklch */ color: oklch(42.6% 0.185 297.7);
Tailwind
colors: {
  custom: {
    50: '#9268c0',
    500: '#5e28a4',
    950: '#000000',
  },
}
SCSS
$custom: #5e28a4;
$custom-light: #9268c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e28a4",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 266.129,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.42595,
    "c": 0.18499,
    "h": 297.7
  },
  "luminance": 0.06578
}

Semantic roles & 50–950 ramp

primary
#5E28A4
secondary
#9AC166
accent
#E4449E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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