#5D2F8A#5D2F8A

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

Color values

HEX#5D2F8A
RGBrgb(93, 47, 138)
HSLhsl(270, 49%, 36%)
HSVhsv(270, 66%, 54%)
CMYKcmyk(32.6%, 65.9%, 0%, 45.9%)
CIE-LABlab(29.90, 39.12, -42.84)
CIE-LCHlch(29.90, 58.01, 312.40°)
OKLaboklab(41.27% 0.0816 -0.1215)
OKLCHoklch(41.27% 0.146 303.9)
XYZxyz(10.1171, 6.1952, 24.7026)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F8A #5C8A2F
analogous
#302F8A #5D2F8A #8A2F8A
triadic
#5D2F8A #8A5D2F #2F8A5D
tetradic
#5D2F8A #8A302F #5C8A2F #2F8A8A
square
#5D2F8A #8A302F #5C8A2F #2F8A8A
split-complementary
#5D2F8A #8A8A2F #2F8A30
monochromatic
#1F102F #3E1F5C #5D2F8A #7C3FB8 #9A68CC

Accessibility & contrast

On white

9.38
#5D2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2F8A
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F8A#FFFFFF#000000##FFFFFF
##5D2F8A1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#134688
Tritanopia (blue-blind)
#554358
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2f8a;
/* rgb */ color: rgb(93, 47, 138);
/* oklch */ color: oklch(41.3% 0.146 303.9);
Tailwind
colors: {
  custom: {
    50: '#8f6aad',
    500: '#5d2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f8a;
$custom-light: #8f6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f8a",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 270.33,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41267,
    "c": 0.14636,
    "h": 303.9
  },
  "luminance": 0.06195
}

Semantic roles & 50–950 ramp

primary
#5D2F8A
secondary
#8AB362
accent
#D94F93
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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