#5D2D88#5D2D88

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

Color values

HEX#5D2D88
RGBrgb(93, 45, 136)
HSLhsl(272, 50%, 35%)
HSVhsv(272, 67%, 53%)
CMYKcmyk(31.6%, 66.9%, 0%, 46.7%)
CIE-LABlab(29.37, 39.67, -42.46)
CIE-LCHlch(29.37, 58.11, 313.06°)
OKLaboklab(40.84% 0.0842 -0.1204)
OKLCHoklch(40.84% 0.147 305)
XYZxyz(9.8955, 5.9816, 23.9210)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D88 #58882D
analogous
#2F2D88 #5D2D88 #882D85
triadic
#5D2D88 #885D2D #2D885D
tetradic
#5D2D88 #882F2D #58882D #2D8588
square
#5D2D88 #882F2D #58882D #2D8588
split-complementary
#5D2D88 #85882D #2D882F
monochromatic
#1E0F2C #3E1E5A #5D2D88 #7C3CB6 #9B64CC

Accessibility & contrast

On white

9.56
#5D2D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5D2D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2D88
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D88#FFFFFF#000000##FFFFFF
##5D2D881.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d2d88;
/* rgb */ color: rgb(93, 45, 136);
/* oklch */ color: oklch(40.8% 0.147 305.0);
Tailwind
colors: {
  custom: {
    50: '#8f69ab',
    500: '#5d2d88',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d88;
$custom-light: #8f69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d88",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 271.648,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40836,
    "c": 0.1469,
    "h": 305
  },
  "luminance": 0.05982
}

Semantic roles & 50–950 ramp

primary
#5D2D88
secondary
#86B25F
accent
#DA4E90
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2D88

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

Preview Lab → · Contrast checker → · Palette generator →

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