#5E229E#5E229E

#5E229E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.185 H 300.1°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5E229E
RGBrgb(94, 34, 158)
HSLhsl(269, 65%, 38%)
HSVhsv(269, 78%, 62%)
CMYKcmyk(40.5%, 78.5%, 0%, 38%)
CIE-LABlab(29.39, 50.62, -55.94)
CIE-LCHlch(29.39, 75.44, 312.14°)
OKLaboklab(41.43% 0.0929 -0.1599)
OKLCHoklch(41.43% 0.185 300.1)
XYZxyz(11.3581, 5.9922, 32.8993)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E229E #629E22
analogous
#22249E #5E229E #9C229E
triadic
#5E229E #9E5E22 #229E5E
tetradic
#5E229E #9E2224 #629E22 #229E9C
square
#5E229E #9E2224 #629E22 #229E9C
split-complementary
#5E229E #9E9C22 #249E22
monochromatic
#220C39 #40176C #5E229E #7C2DD0 #9B5EDC

Accessibility & contrast

On white

9.55
#5E229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5E229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E229E
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E229E#FFFFFF#000000##FFFFFF
##5E229E1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#4F435F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e229e;
/* rgb */ color: rgb(94, 34, 158);
/* oklch */ color: oklch(41.4% 0.185 300.1);
Tailwind
colors: {
  custom: {
    50: '#9264bc',
    500: '#5e229e',
    950: '#000000',
  },
}
SCSS
$custom: #5e229e;
$custom-light: #9264bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e229e",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 269.032,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41431,
    "c": 0.18491,
    "h": 300.1
  },
  "luminance": 0.05992
}

Semantic roles & 50–950 ramp

primary
#5E229E
secondary
#90C15B
accent
#E84097
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E229E

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

Preview Lab → · Contrast checker → · Palette generator →

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