#5A2EAF#5A2EAF

#5A2EAF is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.190 H 292.3°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5A2EAF
RGBrgb(90, 46, 175)
HSLhsl(260, 58%, 43%)
HSVhsv(260, 74%, 69%)
CMYKcmyk(48.6%, 73.7%, 0%, 31.4%)
CIE-LABlab(32.31, 48.92, -61.44)
CIE-LCHlch(32.31, 78.54, 308.53°)
OKLaboklab(43.83% 0.0721 -0.1763)
OKLCHoklch(43.83% 0.19 292.3)
XYZxyz(12.9291, 7.2223, 41.2619)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EAF #83AF2E
analogous
#2E42AF #5A2EAF #9A2EAF
triadic
#5A2EAF #AF5A2E #2EAF5A
tetradic
#5A2EAF #AF2E42 #83AF2E #2EAF9A
square
#5A2EAF #AF2E42 #83AF2E #2EAF9A
split-complementary
#5A2EAF #AF9A2E #42AF2E
monochromatic
#28154E #41217F #5A2EAF #784BD0 #9C7BDC

Accessibility & contrast

On white

8.59
#5A2EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5A2EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EAF
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EAF#FFFFFF#000000##FFFFFF
##5A2EAF1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2eaf;
/* rgb */ color: rgb(90, 46, 175);
/* oklch */ color: oklch(43.8% 0.190 292.3);
Tailwind
colors: {
  custom: {
    50: '#916bc8',
    500: '#5a2eaf',
    950: '#000000',
  },
}
SCSS
$custom: #5a2eaf;
$custom-light: #916bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2eaf",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 260.465,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43828,
    "c": 0.19044,
    "h": 292.3
  },
  "luminance": 0.07223
}

Semantic roles & 50–950 ramp

primary
#5A2EAF
secondary
#A9C574
accent
#E246AD
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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