#5E227D#5E227D

#5E227D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.150 H 311.6°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#5E227D
RGBrgb(94, 34, 125)
HSLhsl(280, 57%, 31%)
HSVhsv(280, 73%, 49%)
CMYKcmyk(24.8%, 72.8%, 0%, 51%)
CIE-LABlab(26.75, 42.70, -39.79)
CIE-LCHlch(26.75, 58.36, 317.02°)
OKLaboklab(38.74% 0.0997 -0.1124)
OKLCHoklch(38.74% 0.15 311.6)
XYZxyz(8.8891, 5.0046, 19.8958)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E227D #417D22
analogous
#30227D #5E227D #7D226E
triadic
#5E227D #7D5E22 #227D5E
tetradic
#5E227D #7D3022 #417D22 #226E7D
square
#5E227D #7D3022 #417D22 #226E7D
split-complementary
#5E227D #6E7D22 #227D30
monochromatic
#16081D #3A154D #5E227D #822FAD #A24BCE

Accessibility & contrast

On white

10.50
#5E227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5E227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E227D
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E227D#FFFFFF#000000##FFFFFF
##5E227D1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#16407B
Tritanopia (blue-blind)
#5A364D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e227d;
/* rgb */ color: rgb(94, 34, 125);
/* oklch */ color: oklch(38.7% 0.150 311.6);
Tailwind
colors: {
  custom: {
    50: '#8f63a3',
    500: '#5e227d',
    950: '#000000',
  },
}
SCSS
$custom: #5e227d;
$custom-light: #8f63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e227d",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 279.56,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38737,
    "c": 0.15028,
    "h": 311.6
  },
  "luminance": 0.05004
}

Semantic roles & 50–950 ramp

primary
#5E227D
secondary
#6DB04B
accent
#E0477B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E227D

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

Preview Lab → · Contrast checker → · Palette generator →

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