#5E2273#5E2273

#5E2273 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.0% C 0.140 H 316.0°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#5E2273
RGBrgb(94, 34, 115)
HSLhsl(284, 54%, 29%)
HSVhsv(284, 70%, 45%)
CMYKcmyk(18.3%, 70.4%, 0%, 54.9%)
CIE-LABlab(26.05, 40.44, -34.56)
CIE-LCHlch(26.05, 53.20, 319.48°)
OKLaboklab(38.01% 0.1007 -0.0971)
OKLCHoklch(38.01% 0.14 316)
XYZxyz(8.2822, 4.7619, 16.6992)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2273 #377322
analogous
#362273 #5E2273 #732260
triadic
#5E2273 #735E22 #22735E
tetradic
#5E2273 #733622 #377322 #226073
square
#5E2273 #733622 #377322 #226073
split-complementary
#5E2273 #607322 #227336
monochromatic
#130718 #371444 #5E2273 #8530A2 #A747C9

Accessibility & contrast

On white

10.76
#5E2273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E2273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2273
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2273#FFFFFF#000000##FFFFFF
##5E22731.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A75
Deuteranopia (green-blind)
#223F71
Tritanopia (blue-blind)
#5D3247
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e2273;
/* rgb */ color: rgb(94, 34, 115);
/* oklch */ color: oklch(38.0% 0.140 316.0);
Tailwind
colors: {
  custom: {
    50: '#8e629c',
    500: '#5e2273',
    950: '#000000',
  },
}
SCSS
$custom: #5e2273;
$custom-light: #8e629c;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2273",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 284.444,
    "s": 54.362,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3801,
    "c": 0.13986,
    "h": 316
  },
  "luminance": 0.04762
}

Semantic roles & 50–950 ramp

primary
#5E2273
secondary
#62A64B
accent
#DE4A70
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5E2273

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

Preview Lab → · Contrast checker → · Palette generator →

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