#5A2E90#5A2E90

#5A2E90 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.154 H 300.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5A2E90
RGBrgb(90, 46, 144)
HSLhsl(267, 52%, 37%)
HSVhsv(267, 68%, 56%)
CMYKcmyk(37.5%, 68.1%, 0%, 43.5%)
CIE-LABlab(29.77, 40.54, -46.79)
CIE-LCHlch(29.77, 61.91, 310.91°)
OKLaboklab(41.23% 0.0778 -0.1332)
OKLCHoklch(41.23% 0.154 300.3)
XYZxyz(10.2263, 6.1412, 27.0268)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E90 #64902E
analogous
#2E3390 #5A2E90 #8B2E90
triadic
#5A2E90 #905A2E #2E905A
tetradic
#5A2E90 #902E33 #64902E #2E908B
square
#5A2E90 #902E33 #64902E #2E908B
split-complementary
#5A2E90 #908B2E #33902E
monochromatic
#201033 #3D1F62 #5A2E90 #773DBE #9769CF

Accessibility & contrast

On white

9.42
#5A2E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5A2E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E90
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E90#FFFFFF#000000##FFFFFF
##5A2E901.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004693
Deuteranopia (green-blind)
#00458E
Tritanopia (blue-blind)
#4E445B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a2e90;
/* rgb */ color: rgb(90, 46, 144);
/* oklch */ color: oklch(41.2% 0.154 300.3);
Tailwind
colors: {
  custom: {
    50: '#8d6ab1',
    500: '#5a2e90',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e90;
$custom-light: #8d6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e90",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 144
  },
  "hsl": {
    "h": 266.939,
    "s": 51.579,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41226,
    "c": 0.15428,
    "h": 300.3
  },
  "luminance": 0.06141
}

Semantic roles & 50–950 ramp

primary
#5A2E90
secondary
#91B664
accent
#DB4D9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A2E90

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

Preview Lab → · Contrast checker → · Palette generator →

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