#5E228B#5E228B

#5E228B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.165 H 306.2°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5E228B
RGBrgb(94, 34, 139)
HSLhsl(274, 61%, 34%)
HSVhsv(274, 76%, 55%)
CMYKcmyk(32.4%, 75.5%, 0%, 45.5%)
CIE-LABlab(27.81, 45.99, -46.84)
CIE-LCHlch(27.81, 65.64, 314.48°)
OKLaboklab(39.83% 0.0974 -0.1331)
OKLCHoklch(39.83% 0.165 306.2)
XYZxyz(9.8473, 5.3879, 24.9423)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E228B #4F8B22
analogous
#2A228B #5E228B #8B2284
triadic
#5E228B #8B5E22 #228B5E
tetradic
#5E228B #8B2A22 #4F8B22 #22848B
square
#5E228B #8B2A22 #4F8B22 #22848B
split-complementary
#5E228B #848B22 #228B2A
monochromatic
#1B0A29 #3D165A #5E228B #7F2EBC #9D53D5

Accessibility & contrast

On white

10.11
#5E228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5E228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E228B
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E228B#FFFFFF#000000##FFFFFF
##5E228B1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#563B55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e228b;
/* rgb */ color: rgb(94, 34, 139);
/* oklch */ color: oklch(39.8% 0.165 306.2);
Tailwind
colors: {
  custom: {
    50: '#9063ae',
    500: '#5e228b',
    950: '#000000',
  },
}
SCSS
$custom: #5e228b;
$custom-light: #9063ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e228b",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 274.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39829,
    "c": 0.16498,
    "h": 306.2
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#5E228B
secondary
#7DB850
accent
#E44488
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E228B

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

Preview Lab → · Contrast checker → · Palette generator →

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