#5E2276#5E2276

#5E2276 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.2% C 0.143 H 314.6°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#5E2276
RGBrgb(94, 34, 118)
HSLhsl(283, 55%, 30%)
HSVhsv(283, 71%, 46%)
CMYKcmyk(20.3%, 71.2%, 0%, 53.7%)
CIE-LABlab(26.25, 41.11, -36.15)
CIE-LCHlch(26.25, 54.74, 318.67°)
OKLaboklab(38.22% 0.1005 -0.1017)
OKLCHoklch(38.22% 0.143 314.6)
XYZxyz(8.4576, 4.8320, 17.6232)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2276 #3A7622
analogous
#342276 #5E2276 #762264
triadic
#5E2276 #765E22 #22765E
tetradic
#5E2276 #763422 #3A7622 #226476
square
#5E2276 #763422 #3A7622 #226476
split-complementary
#5E2276 #647622 #227634
monochromatic
#130718 #381446 #5E2276 #8430A6 #A548CA

Accessibility & contrast

On white

10.68
#5E2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2276
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2276#FFFFFF#000000##FFFFFF
##5E22761.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B78
Deuteranopia (green-blind)
#1F4074
Tritanopia (blue-blind)
#5C3349
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e2276;
/* rgb */ color: rgb(94, 34, 118);
/* oklch */ color: oklch(38.2% 0.143 314.6);
Tailwind
colors: {
  custom: {
    50: '#8f629e',
    500: '#5e2276',
    950: '#000000',
  },
}
SCSS
$custom: #5e2276;
$custom-light: #8f629e;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2276",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 282.857,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38223,
    "c": 0.14298,
    "h": 314.6
  },
  "luminance": 0.04832
}

Semantic roles & 50–950 ramp

primary
#5E2276
secondary
#66A94B
accent
#DF4974
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5E2276

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

Preview Lab → · Contrast checker → · Palette generator →

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