#5D2F91#5D2F91

#5D2F91 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.155 H 301.5°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5D2F91
RGBrgb(93, 47, 145)
HSLhsl(268, 51%, 38%)
HSVhsv(268, 68%, 57%)
CMYKcmyk(35.9%, 67.6%, 0%, 43.1%)
CIE-LABlab(30.41, 40.93, -46.34)
CIE-LCHlch(30.41, 61.83, 311.45°)
OKLaboklab(41.8% 0.0809 -0.1318)
OKLCHoklch(41.8% 0.155 301.5)
XYZxyz(10.6403, 6.4045, 27.4582)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F91 #63912F
analogous
#2F3291 #5D2F91 #8E2F91
triadic
#5D2F91 #915D2F #2F915D
tetradic
#5D2F91 #912F32 #63912F #2F918E
square
#5D2F91 #912F32 #63912F #2F918E
split-complementary
#5D2F91 #918E2F #32912F
monochromatic
#221135 #3F2063 #5D2F91 #7B3EBF #9A6BCF

Accessibility & contrast

On white

9.21
#5D2F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5D2F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2F91
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F91#FFFFFF#000000##FFFFFF
##5D2F911.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#00478F
Tritanopia (blue-blind)
#52455C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2f91;
/* rgb */ color: rgb(93, 47, 145);
/* oklch */ color: oklch(41.8% 0.155 301.5);
Tailwind
colors: {
  custom: {
    50: '#8f6bb2',
    500: '#5d2f91',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f91;
$custom-light: #8f6bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f91",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 268.163,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41797,
    "c": 0.15463,
    "h": 301.5
  },
  "luminance": 0.06405
}

Semantic roles & 50–950 ramp

primary
#5D2F91
secondary
#90B665
accent
#DB4D98
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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