#5E229D#5E229D

#5E229D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.184 H 300.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5E229D
RGBrgb(94, 34, 157)
HSLhsl(269, 64%, 37%)
HSVhsv(269, 78%, 62%)
CMYKcmyk(40.1%, 78.3%, 0%, 38.4%)
CIE-LABlab(29.31, 50.37, -55.48)
CIE-LCHlch(29.31, 74.93, 312.24°)
OKLaboklab(41.34% 0.0931 -0.1585)
OKLCHoklch(41.34% 0.184 300.4)
XYZxyz(11.2724, 5.9580, 32.4479)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E229D #619D22
analogous
#22249D #5E229D #9B229D
triadic
#5E229D #9D5E22 #229D5E
tetradic
#5E229D #9D2224 #619D22 #229D9B
square
#5E229D #9D2224 #619D22 #229D9B
split-complementary
#5E229D #9D9B22 #249D22
monochromatic
#220C38 #40176B #5E229D #7C2DCF #9B5DDC

Accessibility & contrast

On white

9.58
#5E229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5E229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E229D
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E229D#FFFFFF#000000##FFFFFF
##5E229D1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e229d;
/* rgb */ color: rgb(94, 34, 157);
/* oklch */ color: oklch(41.3% 0.184 300.4);
Tailwind
colors: {
  custom: {
    50: '#9264bb',
    500: '#5e229d',
    950: '#000000',
  },
}
SCSS
$custom: #5e229d;
$custom-light: #9264bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e229d",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 269.268,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41344,
    "c": 0.18386,
    "h": 300.4
  },
  "luminance": 0.05958
}

Semantic roles & 50–950 ramp

primary
#5E229D
secondary
#8FC15A
accent
#E74096
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E229D

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

Preview Lab → · Contrast checker → · Palette generator →

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