#5A2CAF#5A2CAF

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

Color values

HEX#5A2CAF
RGBrgb(90, 44, 175)
HSLhsl(261, 60%, 43%)
HSVhsv(261, 75%, 69%)
CMYKcmyk(48.6%, 74.9%, 0%, 31.4%)
CIE-LABlab(31.97, 49.89, -62.00)
CIE-LCHlch(31.97, 79.58, 308.82°)
OKLaboklab(43.59% 0.0738 -0.1779)
OKLCHoklch(43.59% 0.193 292.5)
XYZxyz(12.8528, 7.0697, 41.2365)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CAF #81AF2C
analogous
#2C3FAF #5A2CAF #9B2CAF
triadic
#5A2CAF #AF5A2C #2CAF5A
tetradic
#5A2CAF #AF2C3F #81AF2C #2CAF9B
square
#5A2CAF #AF2C3F #81AF2C #2CAF9B
split-complementary
#5A2CAF #AF9B2C #3FAF2C
monochromatic
#28134D #41207E #5A2CAF #7847D1 #9C78DD

Accessibility & contrast

On white

8.70
#5A2CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2CAF
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CAF#FFFFFF#000000##FFFFFF
##5A2CAF1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#3F4F6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2caf;
/* rgb */ color: rgb(90, 44, 175);
/* oklch */ color: oklch(43.6% 0.193 292.5);
Tailwind
colors: {
  custom: {
    50: '#916ac8',
    500: '#5a2caf',
    950: '#000000',
  },
}
SCSS
$custom: #5a2caf;
$custom-light: #916ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2caf",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 261.069,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43586,
    "c": 0.19261,
    "h": 292.5
  },
  "luminance": 0.0707
}

Semantic roles & 50–950 ramp

primary
#5A2CAF
secondary
#A8C572
accent
#E345AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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