#5D2189#5D2189

#5D2189 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.164 H 306.5°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5D2189
RGBrgb(93, 33, 137)
HSLhsl(275, 61%, 33%)
HSVhsv(275, 76%, 54%)
CMYKcmyk(32.1%, 75.9%, 0%, 46.3%)
CIE-LABlab(27.36, 45.75, -46.34)
CIE-LCHlch(27.36, 65.12, 314.63°)
OKLaboklab(39.42% 0.0974 -0.1317)
OKLCHoklch(39.42% 0.164 306.5)
XYZxyz(9.5724, 5.2211, 24.1655)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2189 #4D8921
analogous
#292189 #5D2189 #892181
triadic
#5D2189 #895D21 #21895D
tetradic
#5D2189 #892921 #4D8921 #218189
square
#5D2189 #892921 #4D8921 #218189
split-complementary
#5D2189 #818921 #218929
monochromatic
#1A0926 #3C1558 #5D2189 #7E2DBA #9C50D5

Accessibility & contrast

On white

10.27
#5D2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5D2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2189
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2189#FFFFFF#000000##FFFFFF
##5D21891.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#553A53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d2189;
/* rgb */ color: rgb(93, 33, 137);
/* oklch */ color: oklch(39.4% 0.164 306.5);
Tailwind
colors: {
  custom: {
    50: '#8f63ac',
    500: '#5d2189',
    950: '#000000',
  },
}
SCSS
$custom: #5d2189;
$custom-light: #8f63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2189",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 274.615,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39425,
    "c": 0.1638,
    "h": 306.5
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#5D2189
secondary
#7BB84E
accent
#E44488
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D2189

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

Preview Lab → · Contrast checker → · Palette generator →

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