#5E228F#5E228F

#5E228F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.169 H 304.8°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5E228F
RGBrgb(94, 34, 143)
HSLhsl(273, 62%, 35%)
HSVhsv(273, 76%, 56%)
CMYKcmyk(34.3%, 76.2%, 0%, 43.9%)
CIE-LABlab(28.13, 46.95, -48.79)
CIE-LCHlch(28.13, 67.71, 313.90°)
OKLaboklab(40.16% 0.0966 -0.1389)
OKLCHoklch(40.16% 0.169 304.8)
XYZxyz(10.1449, 5.5070, 26.5098)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E228F #538F22
analogous
#28228F #5E228F #8F2289
triadic
#5E228F #8F5E22 #228F5E
tetradic
#5E228F #8F2822 #538F22 #22898F
square
#5E228F #8F2822 #538F22 #22898F
split-complementary
#5E228F #898F22 #228F28
monochromatic
#1D0A2C #3D165E #5E228F #7F2EC0 #9C55D7

Accessibility & contrast

On white

9.99
#5E228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E228F
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E228F#FFFFFF#000000##FFFFFF
##5E228F1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#553D57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e228f;
/* rgb */ color: rgb(94, 34, 143);
/* oklch */ color: oklch(40.2% 0.169 304.8);
Tailwind
colors: {
  custom: {
    50: '#9164b1',
    500: '#5e228f',
    950: '#000000',
  },
}
SCSS
$custom: #5e228f;
$custom-light: #9164b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e228f",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 273.028,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40155,
    "c": 0.16918,
    "h": 304.8
  },
  "luminance": 0.05507
}

Semantic roles & 50–950 ramp

primary
#5E228F
secondary
#81BA52
accent
#E5438C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E228F

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

Preview Lab → · Contrast checker → · Palette generator →

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