#5A209B#5A209B

#5A209B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.183 H 299.2°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5A209B
RGBrgb(90, 32, 155)
HSLhsl(268, 66%, 37%)
HSVhsv(268, 79%, 61%)
CMYKcmyk(41.9%, 79.4%, 0%, 39.2%)
CIE-LABlab(28.31, 50.05, -55.91)
CIE-LCHlch(28.31, 75.04, 311.83°)
OKLaboklab(40.48% 0.0893 -0.1599)
OKLCHoklch(40.48% 0.183 299.2)
XYZxyz(10.6478, 5.5731, 31.5187)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A209B #619B20
analogous
#20249B #5A209B #98209B
triadic
#5A209B #9B5A20 #209B5A
tetradic
#5A209B #9B2024 #619B20 #209B98
square
#5A209B #9B2024 #619B20 #209B98
split-complementary
#5A209B #9B9820 #249B20
monochromatic
#1F0B36 #3D1668 #5A209B #772ACE #9759DD

Accessibility & contrast

On white

9.93
#5A209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A209B
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A209B#FFFFFF#000000##FFFFFF
##5A209B1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#4A425D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a209b;
/* rgb */ color: rgb(90, 32, 155);
/* oklch */ color: oklch(40.5% 0.183 299.2);
Tailwind
colors: {
  custom: {
    50: '#8f63b9',
    500: '#5a209b',
    950: '#000000',
  },
}
SCSS
$custom: #5a209b;
$custom-light: #8f63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a209b",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 268.293,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40477,
    "c": 0.18318,
    "h": 299.2
  },
  "luminance": 0.05573
}

Semantic roles & 50–950 ramp

primary
#5A209B
secondary
#8EC156
accent
#E93F99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A209B

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

Preview Lab → · Contrast checker → · Palette generator →

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