#5A2DAF#5A2DAF

#5A2DAF is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.192 H 292.4°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5A2DAF
RGBrgb(90, 45, 175)
HSLhsl(261, 59%, 43%)
HSVhsv(261, 74%, 69%)
CMYKcmyk(48.6%, 74.3%, 0%, 31.4%)
CIE-LABlab(32.13, 49.41, -61.72)
CIE-LCHlch(32.13, 79.07, 308.68°)
OKLaboklab(43.71% 0.073 -0.1771)
OKLCHoklch(43.71% 0.192 292.4)
XYZxyz(12.8905, 7.1451, 41.2491)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DAF #82AF2D
analogous
#2D41AF #5A2DAF #9B2DAF
triadic
#5A2DAF #AF5A2D #2DAF5A
tetradic
#5A2DAF #AF2D41 #82AF2D #2DAF9B
square
#5A2DAF #AF2D41 #82AF2D #2DAF9B
split-complementary
#5A2DAF #AF9B2D #41AF2D
monochromatic
#28144E #41207E #5A2DAF #7849D0 #9C7ADD

Accessibility & contrast

On white

8.64
#5A2DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5A2DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DAF
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DAF#FFFFFF#000000##FFFFFF
##5A2DAF1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2daf;
/* rgb */ color: rgb(90, 45, 175);
/* oklch */ color: oklch(43.7% 0.192 292.4);
Tailwind
colors: {
  custom: {
    50: '#916ac8',
    500: '#5a2daf',
    950: '#000000',
  },
}
SCSS
$custom: #5a2daf;
$custom-light: #916ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2daf",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 260.769,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43706,
    "c": 0.19153,
    "h": 292.4
  },
  "luminance": 0.07146
}

Semantic roles & 50–950 ramp

primary
#5A2DAF
secondary
#A9C573
accent
#E246AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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