#5E2286#5E2286

#5E2286 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.160 H 308.0°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5E2286
RGBrgb(94, 34, 134)
HSLhsl(276, 60%, 33%)
HSVhsv(276, 75%, 53%)
CMYKcmyk(29.9%, 74.6%, 0%, 47.5%)
CIE-LABlab(27.42, 44.80, -44.35)
CIE-LCHlch(27.42, 63.04, 315.29°)
OKLaboklab(39.43% 0.0984 -0.1258)
OKLCHoklch(39.43% 0.16 308)
XYZxyz(9.4903, 5.2451, 23.0621)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2286 #4A8622
analogous
#2C2286 #5E2286 #86227C
triadic
#5E2286 #865E22 #22865E
tetradic
#5E2286 #862C22 #4A8622 #227C86
square
#5E2286 #862C22 #4A8622 #227C86
split-complementary
#5E2286 #7C8622 #22862C
monochromatic
#1A0924 #3C1655 #5E2286 #802EB7 #9E50D3

Accessibility & contrast

On white

10.25
#5E2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5E2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2286
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2286#FFFFFF#000000##FFFFFF
##5E22861.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#024184
Tritanopia (blue-blind)
#583952
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e2286;
/* rgb */ color: rgb(94, 34, 134);
/* oklch */ color: oklch(39.4% 0.160 308.0);
Tailwind
colors: {
  custom: {
    50: '#9063aa',
    500: '#5e2286',
    950: '#000000',
  },
}
SCSS
$custom: #5e2286;
$custom-light: #9063aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2286",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 276,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39429,
    "c": 0.15973,
    "h": 308
  },
  "luminance": 0.05245
}

Semantic roles & 50–950 ramp

primary
#5E2286
secondary
#77B64E
accent
#E34584
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2286

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

Preview Lab → · Contrast checker → · Palette generator →

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