#5A2EA8#5A2EA8

#5A2EA8 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.182 H 293.8°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5A2EA8
RGBrgb(90, 46, 168)
HSLhsl(262, 57%, 42%)
HSVhsv(262, 73%, 66%)
CMYKcmyk(46.4%, 72.6%, 0%, 34.1%)
CIE-LABlab(31.70, 47.01, -58.24)
CIE-LCHlch(31.70, 74.84, 308.91°)
OKLaboklab(43.21% 0.0737 -0.1668)
OKLCHoklch(43.21% 0.182 293.8)
XYZxyz(12.2594, 6.9544, 37.7346)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EA8 #7CA82E
analogous
#2E3FA8 #5A2EA8 #972EA8
triadic
#5A2EA8 #A85A2E #2EA85A
tetradic
#5A2EA8 #A82E3F #7CA82E #2EA897
square
#5A2EA8 #A82E3F #7CA82E #2EA897
split-complementary
#5A2EA8 #A8972E #3FA82E
monochromatic
#271448 #402178 #5A2EA8 #7747CD #9A77DA

Accessibility & contrast

On white

8.78
#5A2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5A2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EA8
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EA8#FFFFFF#000000##FFFFFF
##5A2EA81.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#434E68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2ea8;
/* rgb */ color: rgb(90, 46, 168);
/* oklch */ color: oklch(43.2% 0.182 293.8);
Tailwind
colors: {
  custom: {
    50: '#906bc3',
    500: '#5a2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ea8;
$custom-light: #906bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ea8",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 261.639,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43213,
    "c": 0.1824,
    "h": 293.8
  },
  "luminance": 0.06955
}

Semantic roles & 50–950 ramp

primary
#5A2EA8
secondary
#A4C270
accent
#E048A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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