#5E228E#5E228E

#5E228E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.168 H 305.2°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5E228E
RGBrgb(94, 34, 142)
HSLhsl(273, 61%, 35%)
HSVhsv(273, 76%, 56%)
CMYKcmyk(33.8%, 76.1%, 0%, 44.3%)
CIE-LABlab(28.05, 46.71, -48.31)
CIE-LCHlch(28.05, 67.20, 314.04°)
OKLaboklab(40.07% 0.0968 -0.1375)
OKLCHoklch(40.07% 0.168 305.2)
XYZxyz(10.0695, 5.4768, 26.1126)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E228E #528E22
analogous
#28228E #5E228E #8E2288
triadic
#5E228E #8E5E22 #228E5E
tetradic
#5E228E #8E2822 #528E22 #22888E
square
#5E228E #8E2822 #528E22 #22888E
split-complementary
#5E228E #888E22 #228E28
monochromatic
#1D0A2B #3D165D #5E228E #7F2EBF #9C54D6

Accessibility & contrast

On white

10.02
#5E228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5E228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E228E
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E228E#FFFFFF#000000##FFFFFF
##5E228E1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#553D56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e228e;
/* rgb */ color: rgb(94, 34, 142);
/* oklch */ color: oklch(40.1% 0.168 305.2);
Tailwind
colors: {
  custom: {
    50: '#9064b0',
    500: '#5e228e',
    950: '#000000',
  },
}
SCSS
$custom: #5e228e;
$custom-light: #9064b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e228e",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 273.333,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40073,
    "c": 0.16813,
    "h": 305.2
  },
  "luminance": 0.05477
}

Semantic roles & 50–950 ramp

primary
#5E228E
secondary
#80BA52
accent
#E4438B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E228E

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

Preview Lab → · Contrast checker → · Palette generator →

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