#5A239D#5A239D

#5A239D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.182 H 298.2°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5A239D
RGBrgb(90, 35, 157)
HSLhsl(267, 64%, 38%)
HSVhsv(267, 78%, 62%)
CMYKcmyk(42.7%, 77.7%, 0%, 38.4%)
CIE-LABlab(28.93, 49.28, -56.12)
CIE-LCHlch(28.93, 74.68, 311.29°)
OKLaboklab(40.96% 0.0863 -0.1605)
OKLCHoklch(40.96% 0.182 298.2)
XYZxyz(10.9017, 5.8099, 32.4388)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A239D #669D23
analogous
#23299D #5A239D #97239D
triadic
#5A239D #9D5A23 #239D5A
tetradic
#5A239D #9D2329 #669D23 #239D97
square
#5A239D #9D2329 #669D23 #239D97
split-complementary
#5A239D #9D9723 #299D23
monochromatic
#210D39 #3D186B #5A239D #772ECF #975FDB

Accessibility & contrast

On white

9.71
#5A239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A239D
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A239D#FFFFFF#000000##FFFFFF
##5A239D1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#49445F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a239d;
/* rgb */ color: rgb(90, 35, 157);
/* oklch */ color: oklch(41.0% 0.182 298.2);
Tailwind
colors: {
  custom: {
    50: '#8f64bb',
    500: '#5a239d',
    950: '#000000',
  },
}
SCSS
$custom: #5a239d;
$custom-light: #8f64bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a239d",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 267.049,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40964,
    "c": 0.18226,
    "h": 298.2
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#5A239D
secondary
#93C05C
accent
#E7419C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A239D

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

Preview Lab → · Contrast checker → · Palette generator →

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