#5A2E98#5A2E98

#5A2E98 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.164 H 297.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5A2E98
RGBrgb(90, 46, 152)
HSLhsl(265, 54%, 39%)
HSVhsv(265, 70%, 60%)
CMYKcmyk(40.8%, 69.7%, 0%, 40.4%)
CIE-LABlab(30.39, 42.68, -50.69)
CIE-LCHlch(30.39, 66.26, 310.10°)
OKLaboklab(41.87% 0.0767 -0.1447)
OKLCHoklch(41.87% 0.164 297.9)
XYZxyz(10.8595, 6.3945, 30.3618)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E98 #6C982E
analogous
#2E3798 #5A2E98 #8F2E98
triadic
#5A2E98 #985A2E #2E985A
tetradic
#5A2E98 #982E37 #6C982E #2E988F
square
#5A2E98 #982E37 #6C982E #2E988F
split-complementary
#5A2E98 #988F2E #37982E
monochromatic
#22123A #3E2069 #5A2E98 #763EC5 #986DD3

Accessibility & contrast

On white

9.21
#5A2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5A2E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E98
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E98#FFFFFF#000000##FFFFFF
##5A2E981.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#4B475F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2e98;
/* rgb */ color: rgb(90, 46, 152);
/* oklch */ color: oklch(41.9% 0.164 297.9);
Tailwind
colors: {
  custom: {
    50: '#8e6ab7',
    500: '#5a2e98',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e98;
$custom-light: #8e6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e98",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 264.906,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41866,
    "c": 0.16374,
    "h": 297.9
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#5A2E98
secondary
#98BA68
accent
#DD4BA0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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