#5E2D88#5E2D88

#5E2D88 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.147 H 305.6°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5E2D88
RGBrgb(94, 45, 136)
HSLhsl(272, 50%, 35%)
HSVhsv(272, 67%, 53%)
CMYKcmyk(30.9%, 66.9%, 0%, 46.7%)
CIE-LABlab(29.50, 39.91, -42.24)
CIE-LCHlch(29.50, 58.11, 313.37°)
OKLaboklab(40.96% 0.0856 -0.1197)
OKLCHoklch(40.96% 0.147 305.6)
XYZxyz(9.9974, 6.0341, 23.9258)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D88 #57882D
analogous
#312D88 #5E2D88 #882D84
triadic
#5E2D88 #885E2D #2D885E
tetradic
#5E2D88 #88312D #57882D #2D8488
square
#5E2D88 #88312D #57882D #2D8488
split-complementary
#5E2D88 #84882D #2D8831
monochromatic
#1E0F2C #3E1E5A #5E2D88 #7E3CB6 #9C64CC

Accessibility & contrast

On white

9.52
#5E2D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5E2D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D88
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D88#FFFFFF#000000##FFFFFF
##5E2D881.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#154686
Tritanopia (blue-blind)
#574056
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2d88;
/* rgb */ color: rgb(94, 45, 136);
/* oklch */ color: oklch(41.0% 0.147 305.6);
Tailwind
colors: {
  custom: {
    50: '#8f69ab',
    500: '#5e2d88',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d88;
$custom-light: #8f69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d88",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 272.308,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40961,
    "c": 0.14717,
    "h": 305.6
  },
  "luminance": 0.06034
}

Semantic roles & 50–950 ramp

primary
#5E2D88
secondary
#85B25F
accent
#DA4E8F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2D88

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

Preview Lab → · Contrast checker → · Palette generator →

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