#5E2282#5E2282

#5E2282 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.156 H 309.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#5E2282
RGBrgb(94, 34, 130)
HSLhsl(278, 59%, 32%)
HSVhsv(278, 74%, 51%)
CMYKcmyk(27.7%, 73.8%, 0%, 49%)
CIE-LABlab(27.12, 43.86, -42.34)
CIE-LCHlch(27.12, 60.96, 316.01°)
OKLaboklab(39.12% 0.099 -0.1199)
OKLCHoklch(39.12% 0.156 309.5)
XYZxyz(9.2166, 5.1356, 21.6205)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2282 #468222
analogous
#2E2282 #5E2282 #822276
triadic
#5E2282 #825E22 #22825E
tetradic
#5E2282 #822E22 #468222 #227682
square
#5E2282 #822E22 #468222 #227682
split-complementary
#5E2282 #768222 #22822E
monochromatic
#180921 #3B1551 #5E2282 #812FB3 #A04ED1

Accessibility & contrast

On white

10.36
#5E2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5E2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2282
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2282#FFFFFF#000000##FFFFFF
##5E22821.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#0D4180
Tritanopia (blue-blind)
#593850
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e2282;
/* rgb */ color: rgb(94, 34, 130);
/* oklch */ color: oklch(39.1% 0.156 309.5);
Tailwind
colors: {
  custom: {
    50: '#8f63a7',
    500: '#5e2282',
    950: '#000000',
  },
}
SCSS
$custom: #5e2282;
$custom-light: #8f63a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2282",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 277.5,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39117,
    "c": 0.15552,
    "h": 309.5
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#5E2282
secondary
#73B44C
accent
#E24680
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E2282

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

Preview Lab → · Contrast checker → · Palette generator →

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