#5A239A#5A239A

#5A239A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.179 H 299.1°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5A239A
RGBrgb(90, 35, 154)
HSLhsl(268, 63%, 37%)
HSVhsv(268, 77%, 60%)
CMYKcmyk(41.6%, 77.3%, 0%, 39.6%)
CIE-LABlab(28.67, 48.52, -54.71)
CIE-LCHlch(28.67, 73.13, 311.57°)
OKLaboklab(40.7% 0.0871 -0.1564)
OKLCHoklch(40.7% 0.179 299.1)
XYZxyz(10.6487, 5.7087, 31.1064)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A239A #639A23
analogous
#23289A #5A239A #96239A
triadic
#5A239A #9A5A23 #239A5A
tetradic
#5A239A #9A2328 #639A23 #239A96
square
#5A239A #9A2328 #639A23 #239A96
split-complementary
#5A239A #9A9623 #289A23
monochromatic
#200C36 #3D1868 #5A239A #772ECC #975DDA

Accessibility & contrast

On white

9.80
#5A239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5A239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A239A
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A239A#FFFFFF#000000##FFFFFF
##5A239A1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#4A435D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a239a;
/* rgb */ color: rgb(90, 35, 154);
/* oklch */ color: oklch(40.7% 0.179 299.1);
Tailwind
colors: {
  custom: {
    50: '#8f64b9',
    500: '#5a239a',
    950: '#000000',
  },
}
SCSS
$custom: #5a239a;
$custom-light: #8f64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a239a",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 267.731,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40699,
    "c": 0.17903,
    "h": 299.1
  },
  "luminance": 0.05709
}

Semantic roles & 50–950 ramp

primary
#5A239A
secondary
#90BF5A
accent
#E6429A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A239A

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

Preview Lab → · Contrast checker → · Palette generator →

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