#5E227A#5E227A

#5E227A is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.5% C 0.147 H 312.8°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5E227A
RGBrgb(94, 34, 122)
HSLhsl(281, 56%, 31%)
HSVhsv(281, 72%, 48%)
CMYKcmyk(23%, 72.1%, 0%, 52.2%)
CIE-LABlab(26.53, 42.01, -38.24)
CIE-LCHlch(26.53, 56.81, 317.69°)
OKLaboklab(38.51% 0.1001 -0.1079)
OKLCHoklch(38.51% 0.147 312.8)
XYZxyz(8.7003, 4.9291, 18.9017)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E227A #3E7A22
analogous
#32227A #5E227A #7A226A
triadic
#5E227A #7A5E22 #227A5E
tetradic
#5E227A #7A3222 #3E7A22 #226A7A
square
#5E227A #7A3222 #3E7A22 #226A7A
split-complementary
#5E227A #6A7A22 #227A32
monochromatic
#14071A #39154A #5E227A #832FAA #A34ACD

Accessibility & contrast

On white

10.58
#5E227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E227A
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E227A#FFFFFF#000000##FFFFFF
##5E227A1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#1A4078
Tritanopia (blue-blind)
#5B344B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e227a;
/* rgb */ color: rgb(94, 34, 122);
/* oklch */ color: oklch(38.5% 0.147 312.8);
Tailwind
colors: {
  custom: {
    50: '#8f63a1',
    500: '#5e227a',
    950: '#000000',
  },
}
SCSS
$custom: #5e227a;
$custom-light: #8f63a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e227a",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 280.909,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38514,
    "c": 0.14715,
    "h": 312.8
  },
  "luminance": 0.04929
}

Semantic roles & 50–950 ramp

primary
#5E227A
secondary
#6AAD4B
accent
#E04878
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E227A

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

Preview Lab → · Contrast checker → · Palette generator →

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