#5A2B8D#5A2B8D

#5A2B8D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.155 H 301.8°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#5A2B8D
RGBrgb(90, 43, 141)
HSLhsl(269, 53%, 36%)
HSVhsv(269, 70%, 55%)
CMYKcmyk(36.2%, 69.5%, 0%, 44.7%)
CIE-LABlab(28.97, 41.33, -46.23)
CIE-LCHlch(28.97, 62.01, 311.80°)
OKLaboklab(40.58% 0.0817 -0.1316)
OKLCHoklch(40.58% 0.155 301.8)
XYZxyz(9.8869, 5.8245, 25.7975)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B8D #5E8D2B
analogous
#2B2D8D #5A2B8D #8B2B8D
triadic
#5A2B8D #8D5A2B #2B8D5A
tetradic
#5A2B8D #8D2B2D #5E8D2B #2B8D8B
square
#5A2B8D #8D2B2D #5E8D2B #2B8D8B
split-complementary
#5A2B8D #8D8B2B #2D8D2B
monochromatic
#1E0E2F #3C1D5E #5A2B8D #7839BC #9763CF

Accessibility & contrast

On white

9.70
#5A2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5A2B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B8D
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B8D#FFFFFF#000000##FFFFFF
##5A2B8D1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#4F4258
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a2b8d;
/* rgb */ color: rgb(90, 43, 141);
/* oklch */ color: oklch(40.6% 0.155 301.8);
Tailwind
colors: {
  custom: {
    50: '#8d68af',
    500: '#5a2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b8d;
$custom-light: #8d68af;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b8d",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 268.776,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4058,
    "c": 0.15484,
    "h": 301.8
  },
  "luminance": 0.05825
}

Semantic roles & 50–950 ramp

primary
#5A2B8D
secondary
#8CB65E
accent
#DD4B97
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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