#5D2B83#5D2B83

#5D2B83 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.144 H 307.2°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5D2B83
RGBrgb(93, 43, 131)
HSLhsl(274, 51%, 34%)
HSVhsv(274, 67%, 51%)
CMYKcmyk(29%, 67.2%, 0%, 48.6%)
CIE-LABlab(28.63, 39.48, -40.54)
CIE-LCHlch(28.63, 56.58, 314.24°)
OKLaboklab(40.19% 0.0871 -0.1147)
OKLCHoklch(40.19% 0.144 307.2)
XYZxyz(9.4740, 5.6937, 22.0682)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2B83 #51832B
analogous
#312B83 #5D2B83 #832B7D
triadic
#5D2B83 #835D2B #2B835D
tetradic
#5D2B83 #83312B #51832B #2B7D83
square
#5D2B83 #83312B #51832B #2B7D83
split-complementary
#5D2B83 #7D832B #2B8331
monochromatic
#1C0D27 #3C1C55 #5D2B83 #7E3AB1 #9C5ECA

Accessibility & contrast

On white

9.82
#5D2B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5D2B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2B83
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2B83#FFFFFF#000000##FFFFFF
##5D2B831.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004286
Deuteranopia (green-blind)
#184481
Tritanopia (blue-blind)
#573D53
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2b83;
/* rgb */ color: rgb(93, 43, 131);
/* oklch */ color: oklch(40.2% 0.144 307.2);
Tailwind
colors: {
  custom: {
    50: '#8e68a8',
    500: '#5d2b83',
    950: '#000000',
  },
}
SCSS
$custom: #5d2b83;
$custom-light: #8e68a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2b83",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 131
  },
  "hsl": {
    "h": 274.091,
    "s": 50.575,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4019,
    "c": 0.14402,
    "h": 307.2
  },
  "luminance": 0.05694
}

Semantic roles & 50–950 ramp

primary
#5D2B83
secondary
#7FB05A
accent
#DA4E8A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D2B83

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

Preview Lab → · Contrast checker → · Palette generator →

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