#5E227E#5E227E

#5E227E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.151 H 311.2°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#5E227E
RGBrgb(94, 34, 126)
HSLhsl(279, 58%, 31%)
HSVhsv(279, 73%, 49%)
CMYKcmyk(25.4%, 73%, 0%, 50.6%)
CIE-LABlab(26.82, 42.93, -40.30)
CIE-LCHlch(26.82, 58.88, 316.81°)
OKLaboklab(38.81% 0.0996 -0.1139)
OKLCHoklch(38.81% 0.151 311.2)
XYZxyz(8.9533, 5.0303, 20.2339)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E227E #427E22
analogous
#30227E #5E227E #7E2270
triadic
#5E227E #7E5E22 #227E5E
tetradic
#5E227E #7E3022 #427E22 #22707E
square
#5E227E #7E3022 #427E22 #22707E
split-complementary
#5E227E #707E22 #227E30
monochromatic
#16081E #3A154E #5E227E #822FAE #A14CCF

Accessibility & contrast

On white

10.47
#5E227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E227E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E227E#FFFFFF#000000##FFFFFF
##5E227E1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#15407C
Tritanopia (blue-blind)
#5A364D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e227e;
/* rgb */ color: rgb(94, 34, 126);
/* oklch */ color: oklch(38.8% 0.151 311.2);
Tailwind
colors: {
  custom: {
    50: '#8f63a4',
    500: '#5e227e',
    950: '#000000',
  },
}
SCSS
$custom: #5e227e;
$custom-light: #8f63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e227e",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 279.13,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38812,
    "c": 0.15133,
    "h": 311.2
  },
  "luminance": 0.0503
}

Semantic roles & 50–950 ramp

primary
#5E227E
secondary
#6EB14B
accent
#E1477D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E227E

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

Preview Lab → · Contrast checker → · Palette generator →

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