#5E28A5#5E28A5

#5E28A5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.186 H 297.5°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5E28A5
RGBrgb(94, 40, 165)
HSLhsl(266, 61%, 40%)
HSVhsv(266, 76%, 65%)
CMYKcmyk(43%, 75.8%, 0%, 35.3%)
CIE-LABlab(30.91, 49.77, -57.70)
CIE-LCHlch(30.91, 76.20, 310.78°)
OKLaboklab(42.68% 0.0858 -0.1651)
OKLCHoklch(42.68% 0.186 297.5)
XYZxyz(12.1646, 6.6137, 36.2257)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E28A5 #6FA528
analogous
#2830A5 #5E28A5 #9D28A5
triadic
#5E28A5 #A55E28 #28A55E
tetradic
#5E28A5 #A52830 #6FA528 #28A59D
square
#5E28A5 #A52830 #6FA528 #28A59D
split-complementary
#5E28A5 #A59D28 #30A528
monochromatic
#261042 #421C74 #5E28A5 #7B3BCF #9C6CDB

Accessibility & contrast

On white

9.04
#5E28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E28A5
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E28A5#FFFFFF#000000##FFFFFF
##5E28A51.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#4C4965
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e28a5;
/* rgb */ color: rgb(94, 40, 165);
/* oklch */ color: oklch(42.7% 0.186 297.5);
Tailwind
colors: {
  custom: {
    50: '#9268c1',
    500: '#5e28a5',
    950: '#000000',
  },
}
SCSS
$custom: #5e28a5;
$custom-light: #9268c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e28a5",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 265.92,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42682,
    "c": 0.18609,
    "h": 297.5
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#5E28A5
secondary
#9BC267
accent
#E4449F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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