#5A239C#5A239C

#5A239C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.181 H 298.5°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5A239C
RGBrgb(90, 35, 156)
HSLhsl(267, 63%, 37%)
HSVhsv(267, 78%, 61%)
CMYKcmyk(42.3%, 77.6%, 0%, 38.8%)
CIE-LABlab(28.84, 49.03, -55.65)
CIE-LCHlch(28.84, 74.16, 311.38°)
OKLaboklab(40.88% 0.0865 -0.1592)
OKLCHoklch(40.88% 0.181 298.5)
XYZxyz(10.8167, 5.7759, 31.9910)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A239C #659C23
analogous
#23289C #5A239C #97239C
triadic
#5A239C #9C5A23 #239C5A
tetradic
#5A239C #9C2328 #659C23 #239C97
square
#5A239C #9C2328 #659C23 #239C97
split-complementary
#5A239C #9C9723 #289C23
monochromatic
#200D38 #3D186A #5A239C #772ECE #975EDB

Accessibility & contrast

On white

9.74
#5A239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5A239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A239C
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A239C#FFFFFF#000000##FFFFFF
##5A239C1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#4A435E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a239c;
/* rgb */ color: rgb(90, 35, 156);
/* oklch */ color: oklch(40.9% 0.181 298.5);
Tailwind
colors: {
  custom: {
    50: '#8f64ba',
    500: '#5a239c',
    950: '#000000',
  },
}
SCSS
$custom: #5a239c;
$custom-light: #8f64ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a239c",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 267.273,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40875,
    "c": 0.18119,
    "h": 298.5
  },
  "luminance": 0.05776
}

Semantic roles & 50–950 ramp

primary
#5A239C
secondary
#92C05B
accent
#E6419B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A239C

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

Preview Lab → · Contrast checker → · Palette generator →

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