#5D2E86#5D2E86

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

Color values

HEX#5D2E86
RGBrgb(93, 46, 134)
HSLhsl(272, 49%, 35%)
HSVhsv(272, 66%, 53%)
CMYKcmyk(30.6%, 65.7%, 0%, 47.5%)
CIE-LABlab(29.42, 38.64, -41.13)
CIE-LCHlch(29.42, 56.43, 313.21°)
OKLaboklab(40.83% 0.0831 -0.1165)
OKLCHoklch(40.83% 0.143 305.5)
XYZxyz(9.7933, 6.0024, 23.1923)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E86 #57862E
analogous
#312E86 #5D2E86 #862E83
triadic
#5D2E86 #865D2E #2E865D
tetradic
#5D2E86 #86312E #57862E #2E8386
square
#5D2E86 #86312E #57862E #2E8386
split-complementary
#5D2E86 #83862E #2E8631
monochromatic
#1E0F2B #3D1E58 #5D2E86 #7D3EB4 #9B64CA

Accessibility & contrast

On white

9.54
#5D2E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2E86
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E86#FFFFFF#000000##FFFFFF
##5D2E861.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#184584
Tritanopia (blue-blind)
#564055
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d2e86;
/* rgb */ color: rgb(93, 46, 134);
/* oklch */ color: oklch(40.8% 0.143 305.5);
Tailwind
colors: {
  custom: {
    50: '#8e6aaa',
    500: '#5d2e86',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e86;
$custom-light: #8e6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e86",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 272.045,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40829,
    "c": 0.1431,
    "h": 305.5
  },
  "luminance": 0.06002
}

Semantic roles & 50–950 ramp

primary
#5D2E86
secondary
#85B15F
accent
#D84F8F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2E86

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

Preview Lab → · Contrast checker → · Palette generator →

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