#5E227B#5E227B

#5E227B is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.6% C 0.148 H 312.4°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5E227B
RGBrgb(94, 34, 123)
HSLhsl(280, 57%, 31%)
HSVhsv(280, 72%, 48%)
CMYKcmyk(23.6%, 72.4%, 0%, 51.8%)
CIE-LABlab(26.60, 42.24, -38.76)
CIE-LCHlch(26.60, 57.33, 317.46°)
OKLaboklab(38.59% 0.1 -0.1094)
OKLCHoklch(38.59% 0.148 312.4)
XYZxyz(8.7626, 4.9540, 19.2297)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E227B #3F7B22
analogous
#31227B #5E227B #7B226B
triadic
#5E227B #7B5E22 #227B5E
tetradic
#5E227B #7B3122 #3F7B22 #226B7B
square
#5E227B #7B3122 #3F7B22 #226B7B
split-complementary
#5E227B #6B7B22 #227B31
monochromatic
#15071B #39154B #5E227B #832FAB #A24ACD

Accessibility & contrast

On white

10.55
#5E227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5E227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E227B
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E227B#FFFFFF#000000##FFFFFF
##5E227B1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#194079
Tritanopia (blue-blind)
#5B354C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e227b;
/* rgb */ color: rgb(94, 34, 123);
/* oklch */ color: oklch(38.6% 0.148 312.4);
Tailwind
colors: {
  custom: {
    50: '#8f63a2',
    500: '#5e227b',
    950: '#000000',
  },
}
SCSS
$custom: #5e227b;
$custom-light: #8f63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e227b",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 280.449,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38588,
    "c": 0.14819,
    "h": 312.4
  },
  "luminance": 0.04954
}

Semantic roles & 50–950 ramp

primary
#5E227B
secondary
#6BAE4B
accent
#E04879
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E227B

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

Preview Lab → · Contrast checker → · Palette generator →

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