#5E229F#5E229F

#5E229F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.186 H 299.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5E229F
RGBrgb(94, 34, 159)
HSLhsl(269, 65%, 38%)
HSVhsv(269, 79%, 62%)
CMYKcmyk(40.9%, 78.6%, 0%, 37.6%)
CIE-LABlab(29.48, 50.87, -56.41)
CIE-LCHlch(29.48, 75.96, 312.04°)
OKLaboklab(41.52% 0.0926 -0.1613)
OKLCHoklch(41.52% 0.186 299.9)
XYZxyz(11.4446, 6.0268, 33.3545)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E229F #639F22
analogous
#22249F #5E229F #9C229F
triadic
#5E229F #9F5E22 #229F5E
tetradic
#5E229F #9F2224 #639F22 #229F9C
square
#5E229F #9F2224 #639F22 #229F9C
split-complementary
#5E229F #9F9C22 #249F22
monochromatic
#220C3A #40176D #5E229F #7C2DD1 #9B5FDD

Accessibility & contrast

On white

9.52
#5E229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5E229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E229F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E229F#FFFFFF#000000##FFFFFF
##5E229F1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#4F4460
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e229f;
/* rgb */ color: rgb(94, 34, 159);
/* oklch */ color: oklch(41.5% 0.186 299.9);
Tailwind
colors: {
  custom: {
    50: '#9264bc',
    500: '#5e229f',
    950: '#000000',
  },
}
SCSS
$custom: #5e229f;
$custom-light: #9264bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e229f",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 268.8,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41519,
    "c": 0.18595,
    "h": 299.9
  },
  "luminance": 0.06027
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E229F

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

Preview Lab → · Contrast checker → · Palette generator →

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