#5D3088#5D3088

#5D3088 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.142 H 304.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5D3088
RGBrgb(93, 48, 136)
HSLhsl(271, 48%, 36%)
HSVhsv(271, 65%, 53%)
CMYKcmyk(31.6%, 64.7%, 0%, 46.7%)
CIE-LABlab(29.96, 38.06, -41.51)
CIE-LCHlch(29.96, 56.32, 312.52°)
OKLaboklab(41.26% 0.0805 -0.1176)
OKLCHoklch(41.26% 0.143 304.4)
XYZxyz(10.0141, 6.2187, 23.9605)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3088 #5B8830
analogous
#313088 #5D3088 #883087
triadic
#5D3088 #885D30 #30885D
tetradic
#5D3088 #883130 #5B8830 #308788
square
#5D3088 #883130 #5B8830 #308788
split-complementary
#5D3088 #878830 #308831
monochromatic
#1F102E #3E205B #5D3088 #7C40B5 #9A69CA

Accessibility & contrast

On white

9.36
#5D3088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5D3088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3088
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3088#FFFFFF#000000##FFFFFF
##5D30881.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#194786
Tritanopia (blue-blind)
#554257
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d3088;
/* rgb */ color: rgb(93, 48, 136);
/* oklch */ color: oklch(41.3% 0.142 304.4);
Tailwind
colors: {
  custom: {
    50: '#8e6bab',
    500: '#5d3088',
    950: '#000000',
  },
}
SCSS
$custom: #5d3088;
$custom-light: #8e6bab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3088",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 136
  },
  "hsl": {
    "h": 270.682,
    "s": 47.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41264,
    "c": 0.1425,
    "h": 304.4
  },
  "luminance": 0.06219
}

Semantic roles & 50–950 ramp

primary
#5D3088
secondary
#89B163
accent
#D75092
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D3088

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

Preview Lab → · Contrast checker → · Palette generator →

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