#5D2291#5D2291

#5D2291 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.171 H 303.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5D2291
RGBrgb(93, 34, 145)
HSLhsl(272, 62%, 35%)
HSVhsv(272, 77%, 57%)
CMYKcmyk(35.9%, 76.6%, 0%, 43.1%)
CIE-LABlab(28.16, 47.25, -50.00)
CIE-LCHlch(28.16, 68.79, 313.38°)
OKLaboklab(40.19% 0.0947 -0.1425)
OKLCHoklch(40.19% 0.171 303.6)
XYZxyz(10.1959, 5.5156, 27.3100)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2291 #569122
analogous
#262291 #5D2291 #91228D
triadic
#5D2291 #915D22 #22915D
tetradic
#5D2291 #912622 #569122 #228D91
square
#5D2291 #912622 #569122 #228D91
split-complementary
#5D2291 #8D9122 #229126
monochromatic
#1D0B2E #3D165F #5D2291 #7D2EC3 #9B56D7

Accessibility & contrast

On white

9.98
#5D2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5D2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2291
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2291#FFFFFF#000000##FFFFFF
##5D22911.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#533E58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d2291;
/* rgb */ color: rgb(93, 34, 145);
/* oklch */ color: oklch(40.2% 0.171 303.6);
Tailwind
colors: {
  custom: {
    50: '#9064b2',
    500: '#5d2291',
    950: '#000000',
  },
}
SCSS
$custom: #5d2291;
$custom-light: #9064b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2291",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 271.892,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40192,
    "c": 0.17106,
    "h": 303.6
  },
  "luminance": 0.05516
}

Semantic roles & 50–950 ramp

primary
#5D2291
secondary
#84BB53
accent
#E5438F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2291

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

Preview Lab → · Contrast checker → · Palette generator →

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