#5E2085#5E2085

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

Color values

HEX#5E2085
RGBrgb(94, 32, 133)
HSLhsl(277, 61%, 32%)
HSVhsv(277, 76%, 52%)
CMYKcmyk(29.3%, 75.9%, 0%, 47.8%)
CIE-LABlab(27.04, 45.44, -44.35)
CIE-LCHlch(27.04, 63.50, 315.69°)
OKLaboklab(39.13% 0.1006 -0.1258)
OKLCHoklch(39.13% 0.161 308.6)
XYZxyz(9.3654, 5.1063, 22.6780)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2085 #478520
analogous
#2C2085 #5E2085 #852079
triadic
#5E2085 #855E20 #20855E
tetradic
#5E2085 #852C20 #478520 #207985
square
#5E2085 #852C20 #478520 #207985
split-complementary
#5E2085 #798520 #20852C
monochromatic
#180822 #3B1454 #5E2085 #812CB6 #9F4CD4

Accessibility & contrast

On white

10.39
#5E2085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E2085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2085
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2085#FFFFFF#000000##FFFFFF
##5E20851.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#004183
Tritanopia (blue-blind)
#583851
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e2085;
/* rgb */ color: rgb(94, 32, 133);
/* oklch */ color: oklch(39.1% 0.161 308.6);
Tailwind
colors: {
  custom: {
    50: '#9062a9',
    500: '#5e2085',
    950: '#000000',
  },
}
SCSS
$custom: #5e2085;
$custom-light: #9062a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2085",
  "rgb": {
    "r": 94,
    "g": 32,
    "b": 133
  },
  "hsl": {
    "h": 276.832,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39131,
    "c": 0.1611,
    "h": 308.6
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

primary
#5E2085
secondary
#74B74A
accent
#E44382
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E2085

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

Preview Lab → · Contrast checker → · Palette generator →

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