#5E2272#5E2272

#5E2272 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.9% C 0.139 H 316.5°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5E2272
RGBrgb(94, 34, 114)
HSLhsl(285, 54%, 29%)
HSVhsv(285, 70%, 45%)
CMYKcmyk(17.5%, 70.2%, 0%, 55.3%)
CIE-LABlab(25.98, 40.22, -34.03)
CIE-LCHlch(25.98, 52.68, 319.76°)
OKLaboklab(37.94% 0.1007 -0.0955)
OKLCHoklch(37.94% 0.139 316.5)
XYZxyz(8.2249, 4.7390, 16.3978)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2272 #367222
analogous
#362272 #5E2272 #72225E
triadic
#5E2272 #725E22 #22725E
tetradic
#5E2272 #723622 #367222 #225E72
square
#5E2272 #723622 #367222 #225E72
split-complementary
#5E2272 #5E7222 #227236
monochromatic
#130718 #371443 #5E2272 #8530A1 #A846C8

Accessibility & contrast

On white

10.78
#5E2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2272
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2272#FFFFFF#000000##FFFFFF
##5E22721.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#233F70
Tritanopia (blue-blind)
#5D3147
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e2272;
/* rgb */ color: rgb(94, 34, 114);
/* oklch */ color: oklch(37.9% 0.139 316.5);
Tailwind
colors: {
  custom: {
    50: '#8e629b',
    500: '#5e2272',
    950: '#000000',
  },
}
SCSS
$custom: #5e2272;
$custom-light: #8e629b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2272",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 285,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3794,
    "c": 0.13883,
    "h": 316.5
  },
  "luminance": 0.04739
}

Semantic roles & 50–950 ramp

primary
#5E2272
secondary
#61A54B
accent
#DD4A6F
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5E2272

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

Preview Lab → · Contrast checker → · Palette generator →

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