#5A237A#5A237A

#5A237A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.144 H 310.3°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5A237A
RGBrgb(90, 35, 122)
HSLhsl(278, 55%, 31%)
HSVhsv(278, 71%, 48%)
CMYKcmyk(26.2%, 71.3%, 0%, 52.2%)
CIE-LABlab(26.10, 40.62, -38.96)
CIE-LCHlch(26.10, 56.29, 316.19°)
OKLaboklab(38.08% 0.0933 -0.1101)
OKLCHoklch(38.08% 0.144 310.3)
XYZxyz(8.3297, 4.7810, 18.8926)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A237A #437A23
analogous
#2E237A #5A237A #7A236E
triadic
#5A237A #7A5A23 #237A5A
tetradic
#5A237A #7A2E23 #437A23 #236E7A
square
#5A237A #7A2E23 #437A23 #236E7A
split-complementary
#5A237A #6E7A23 #237A2E
monochromatic
#14081B #37154A #5A237A #7D31AA #9D4CCC

Accessibility & contrast

On white

10.74
#5A237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5A237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A237A
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A237A#FFFFFF#000000##FFFFFF
##5A237A1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#153F78
Tritanopia (blue-blind)
#56364B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a237a;
/* rgb */ color: rgb(90, 35, 122);
/* oklch */ color: oklch(38.1% 0.144 310.3);
Tailwind
colors: {
  custom: {
    50: '#8c63a1',
    500: '#5a237a',
    950: '#000000',
  },
}
SCSS
$custom: #5a237a;
$custom-light: #8c63a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a237a",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 277.931,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38081,
    "c": 0.14436,
    "h": 310.3
  },
  "luminance": 0.04781
}

Semantic roles & 50–950 ramp

primary
#5A237A
secondary
#70AD4C
accent
#DF4980
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #5A237A

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

Preview Lab → · Contrast checker → · Palette generator →

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