#5A2B83#5A2B83

#5A2B83 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.143 H 305.3°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5A2B83
RGBrgb(90, 43, 131)
HSLhsl(272, 51%, 34%)
HSVhsv(272, 67%, 51%)
CMYKcmyk(31.3%, 67.2%, 0%, 48.6%)
CIE-LABlab(28.22, 38.76, -41.21)
CIE-LCHlch(28.22, 56.58, 313.25°)
OKLaboklab(39.81% 0.0828 -0.1168)
OKLCHoklch(39.81% 0.143 305.3)
XYZxyz(9.1762, 5.5402, 22.0543)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B83 #54832B
analogous
#2E2B83 #5A2B83 #832B80
triadic
#5A2B83 #835A2B #2B835A
tetradic
#5A2B83 #832E2B #54832B #2B8083
square
#5A2B83 #832E2B #54832B #2B8083
split-complementary
#5A2B83 #80832B #2B832E
monochromatic
#1B0D27 #3A1C55 #5A2B83 #7A3AB1 #985ECA

Accessibility & contrast

On white

9.96
#5A2B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5A2B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B83
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B83#FFFFFF#000000##FFFFFF
##5A2B831.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004186
Deuteranopia (green-blind)
#134381
Tritanopia (blue-blind)
#533E53
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2b83;
/* rgb */ color: rgb(90, 43, 131);
/* oklch */ color: oklch(39.8% 0.143 305.3);
Tailwind
colors: {
  custom: {
    50: '#8c68a8',
    500: '#5a2b83',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b83;
$custom-light: #8c68a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b83",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 131
  },
  "hsl": {
    "h": 272.045,
    "s": 50.575,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3981,
    "c": 0.14317,
    "h": 305.3
  },
  "luminance": 0.0554
}

Semantic roles & 50–950 ramp

primary
#5A2B83
secondary
#82B05A
accent
#DA4E8F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #5A2B83

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

Preview Lab → · Contrast checker → · Palette generator →

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