#5D2B9C#5D2B9C

#5D2B9C is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.173 H 299.0°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5D2B9C
RGBrgb(93, 43, 156)
HSLhsl(267, 57%, 39%)
HSVhsv(267, 72%, 61%)
CMYKcmyk(40.4%, 72.4%, 0%, 38.8%)
CIE-LABlab(30.53, 45.84, -52.87)
CIE-LCHlch(30.53, 69.98, 310.93°)
OKLaboklab(42.15% 0.0835 -0.151)
OKLCHoklch(42.15% 0.173 299)
XYZxyz(11.3773, 6.4551, 32.0926)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2B9C #6A9C2B
analogous
#2B319C #5D2B9C #962B9C
triadic
#5D2B9C #9C5D2B #2B9C5D
tetradic
#5D2B9C #9C2B31 #6A9C2B #2B9C96
square
#5D2B9C #9C2B31 #6A9C2B #2B9C96
split-complementary
#5D2B9C #9C962B #319C2B
monochromatic
#24113C #401E6C #5D2B9C #7A3BC9 #9B6BD6

Accessibility & contrast

On white

9.17
#5D2B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5D2B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2B9C
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2B9C#FFFFFF#000000##FFFFFF
##5D2B9C1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#4E4761
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2b9c;
/* rgb */ color: rgb(93, 43, 156);
/* oklch */ color: oklch(42.2% 0.173 299.0);
Tailwind
colors: {
  custom: {
    50: '#9169ba',
    500: '#5d2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #5d2b9c;
$custom-light: #9169ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2b9c",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 266.549,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42154,
    "c": 0.17253,
    "h": 299
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

primary
#5D2B9C
secondary
#96BD66
accent
#E0489D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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