#5E227F#5E227F

#5E227F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.152 H 310.7°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5E227F
RGBrgb(94, 34, 127)
HSLhsl(279, 58%, 32%)
HSVhsv(279, 73%, 50%)
CMYKcmyk(26%, 73.2%, 0%, 50.2%)
CIE-LABlab(26.89, 43.16, -40.81)
CIE-LCHlch(26.89, 59.40, 316.60°)
OKLaboklab(38.89% 0.0995 -0.1154)
OKLCHoklch(38.89% 0.152 310.7)
XYZxyz(9.0182, 5.0563, 20.5754)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E227F #437F22
analogous
#30227F #5E227F #7F2272
triadic
#5E227F #7F5E22 #227F5E
tetradic
#5E227F #7F3022 #437F22 #22727F
square
#5E227F #7F3022 #437F22 #22727F
split-complementary
#5E227F #727F22 #227F30
monochromatic
#17081E #3A154F #5E227F #822FAF #A14CCF

Accessibility & contrast

On white

10.44
#5E227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E227F
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E227F#FFFFFF#000000##FFFFFF
##5E227F1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#13417D
Tritanopia (blue-blind)
#5A364E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e227f;
/* rgb */ color: rgb(94, 34, 127);
/* oklch */ color: oklch(38.9% 0.152 310.7);
Tailwind
colors: {
  custom: {
    50: '#8f63a5',
    500: '#5e227f',
    950: '#000000',
  },
}
SCSS
$custom: #5e227f;
$custom-light: #8f63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e227f",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 278.71,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38888,
    "c": 0.15238,
    "h": 310.7
  },
  "luminance": 0.05056
}

Semantic roles & 50–950 ramp

primary
#5E227F
secondary
#70B24B
accent
#E1477E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E227F

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

Preview Lab → · Contrast checker → · Palette generator →

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