#5A2BB0#5A2BB0

#5A2BB0 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.195 H 292.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#5A2BB0
RGBrgb(90, 43, 176)
HSLhsl(261, 61%, 43%)
HSVhsv(261, 76%, 69%)
CMYKcmyk(48.9%, 75.6%, 0%, 31%)
CIE-LABlab(31.89, 50.64, -62.73)
CIE-LCHlch(31.89, 80.62, 308.91°)
OKLaboklab(43.56% 0.0744 -0.18)
OKLCHoklch(43.56% 0.195 292.5)
XYZxyz(12.9146, 7.0355, 41.7434)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BB0 #81B02B
analogous
#2B3EB0 #5A2BB0 #9C2BB0
triadic
#5A2BB0 #B05A2B #2BB05A
tetradic
#5A2BB0 #B02B3E #81B02B #2BB09C
square
#5A2BB0 #B02B3E #81B02B #2BB09C
split-complementary
#5A2BB0 #B09C2B #3EB02B
monochromatic
#28134E #411F7F #5A2BB0 #7846D2 #9C78DE

Accessibility & contrast

On white

8.72
#5A2BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5A2BB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BB0
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BB0#FFFFFF#000000##FFFFFF
##5A2BB01.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB4
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#3E4F6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2bb0;
/* rgb */ color: rgb(90, 43, 176);
/* oklch */ color: oklch(43.6% 0.195 292.5);
Tailwind
colors: {
  custom: {
    50: '#9169c9',
    500: '#5a2bb0',
    950: '#000000',
  },
}
SCSS
$custom: #5a2bb0;
$custom-light: #9169c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2bb0",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 176
  },
  "hsl": {
    "h": 261.203,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43559,
    "c": 0.19479,
    "h": 292.5
  },
  "luminance": 0.07036
}

Semantic roles & 50–950 ramp

primary
#5A2BB0
secondary
#A8C671
accent
#E444AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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