#5E2285#5E2285

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

Color values

HEX#5E2285
RGBrgb(94, 34, 133)
HSLhsl(276, 59%, 33%)
HSVhsv(276, 74%, 52%)
CMYKcmyk(29.3%, 74.4%, 0%, 47.8%)
CIE-LABlab(27.35, 44.56, -43.85)
CIE-LCHlch(27.35, 62.52, 315.46°)
OKLaboklab(39.35% 0.0985 -0.1244)
OKLCHoklch(39.35% 0.159 308.4)
XYZxyz(9.4209, 5.2173, 22.6965)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2285 #498522
analogous
#2D2285 #5E2285 #85227A
triadic
#5E2285 #855E22 #22855E
tetradic
#5E2285 #852D22 #498522 #227A85
square
#5E2285 #852D22 #498522 #227A85
split-complementary
#5E2285 #7A8522 #22852D
monochromatic
#190924 #3C1654 #5E2285 #802EB6 #9F4FD2

Accessibility & contrast

On white

10.28
#5E2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5E2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2285
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2285#FFFFFF#000000##FFFFFF
##5E22851.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#054183
Tritanopia (blue-blind)
#583951
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e2285;
/* rgb */ color: rgb(94, 34, 133);
/* oklch */ color: oklch(39.4% 0.159 308.4);
Tailwind
colors: {
  custom: {
    50: '#9063a9',
    500: '#5e2285',
    950: '#000000',
  },
}
SCSS
$custom: #5e2285;
$custom-light: #9063a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2285",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 276.364,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39351,
    "c": 0.15868,
    "h": 308.4
  },
  "luminance": 0.05217
}

Semantic roles & 50–950 ramp

primary
#5E2285
secondary
#76B64D
accent
#E24583
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2285

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

Preview Lab → · Contrast checker → · Palette generator →

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