#5A2CB7#5A2CB7

#5A2CB7 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.202 H 290.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5A2CB7
RGBrgb(90, 44, 183)
HSLhsl(260, 61%, 45%)
HSVhsv(260, 76%, 72%)
CMYKcmyk(50.8%, 76%, 0%, 28.2%)
CIE-LABlab(32.69, 52.06, -65.58)
CIE-LCHlch(32.69, 83.73, 308.44°)
OKLaboklab(44.31% 0.0718 -0.1884)
OKLCHoklch(44.31% 0.202 290.9)
XYZxyz(13.6619, 7.3934, 45.4978)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CB7 #89B72C
analogous
#2C44B7 #5A2CB7 #A02CB7
triadic
#5A2CB7 #B75A2C #2CB75A
tetradic
#5A2CB7 #B72C44 #89B72C #2CB7A0
square
#5A2CB7 #B72C44 #89B72C #2CB7A0
split-complementary
#5A2CB7 #B7A02C #44B72C
monochromatic
#291454 #422086 #5A2CB7 #794CD4 #9E7EE0

Accessibility & contrast

On white

8.47
#5A2CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5A2CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CB7
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CB7#FFFFFF#000000##FFFFFF
##5A2CB71.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#3A5270
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a2cb7;
/* rgb */ color: rgb(90, 44, 183);
/* oklch */ color: oklch(44.3% 0.202 290.9);
Tailwind
colors: {
  custom: {
    50: '#926ace',
    500: '#5a2cb7',
    950: '#000000',
  },
}
SCSS
$custom: #5a2cb7;
$custom-light: #926ace;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2cb7",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 259.856,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44313,
    "c": 0.20158,
    "h": 290.9
  },
  "luminance": 0.07394
}

Semantic roles & 50–950 ramp

primary
#5A2CB7
secondary
#ADC876
accent
#E443AF
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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