#5A237E#5A237E

#5A237E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.149 H 308.6°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5A237E
RGBrgb(90, 35, 126)
HSLhsl(276, 57%, 32%)
HSVhsv(276, 72%, 49%)
CMYKcmyk(28.6%, 72.2%, 0%, 50.6%)
CIE-LABlab(26.40, 41.57, -41.02)
CIE-LCHlch(26.40, 58.40, 315.39°)
OKLaboklab(38.39% 0.0928 -0.1162)
OKLCHoklch(38.39% 0.149 308.6)
XYZxyz(8.5826, 4.8822, 20.2249)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A237E #477E23
analogous
#2D237E #5A237E #7E2375
triadic
#5A237E #7E5A23 #237E5A
tetradic
#5A237E #7E2D23 #477E23 #23757E
square
#5A237E #7E2D23 #477E23 #23757E
split-complementary
#5A237E #757E23 #237E2D
monochromatic
#16081E #38164E #5A237E #7C30AE #9B4ECE

Accessibility & contrast

On white

10.63
#5A237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5A237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A237E
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A237E#FFFFFF#000000##FFFFFF
##5A237E1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#0E3F7C
Tritanopia (blue-blind)
#55374E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a237e;
/* rgb */ color: rgb(90, 35, 126);
/* oklch */ color: oklch(38.4% 0.149 308.6);
Tailwind
colors: {
  custom: {
    50: '#8c63a4',
    500: '#5a237e',
    950: '#000000',
  },
}
SCSS
$custom: #5a237e;
$custom-light: #8c63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a237e",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 276.264,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38385,
    "c": 0.14871,
    "h": 308.6
  },
  "luminance": 0.04882
}

Semantic roles & 50–950 ramp

primary
#5A237E
secondary
#74B04C
accent
#E04884
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #5A237E

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

Preview Lab → · Contrast checker → · Palette generator →

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