#5A239E#5A239E

#5A239E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.183 H 298.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5A239E
RGBrgb(90, 35, 158)
HSLhsl(267, 64%, 38%)
HSVhsv(267, 78%, 62%)
CMYKcmyk(43%, 77.8%, 0%, 38%)
CIE-LABlab(29.02, 49.53, -56.58)
CIE-LCHlch(29.02, 75.20, 311.20°)
OKLaboklab(41.05% 0.086 -0.1619)
OKLCHoklch(41.05% 0.183 298)
XYZxyz(10.9874, 5.8442, 32.8903)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A239E #679E23
analogous
#232A9E #5A239E #97239E
triadic
#5A239E #9E5A23 #239E5A
tetradic
#5A239E #9E232A #679E23 #239E97
square
#5A239E #9E232A #679E23 #239E97
split-complementary
#5A239E #9E9723 #2A9E23
monochromatic
#210D3A #3D186C #5A239E #772ED0 #9760DC

Accessibility & contrast

On white

9.68
#5A239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5A239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A239E
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A239E#FFFFFF#000000##FFFFFF
##5A239E1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#494460
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a239e;
/* rgb */ color: rgb(90, 35, 158);
/* oklch */ color: oklch(41.1% 0.183 298.0);
Tailwind
colors: {
  custom: {
    50: '#8f64bc',
    500: '#5a239e',
    950: '#000000',
  },
}
SCSS
$custom: #5a239e;
$custom-light: #8f64bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a239e",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 266.829,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41053,
    "c": 0.18334,
    "h": 298
  },
  "luminance": 0.05844
}

Semantic roles & 50–950 ramp

primary
#5A239E
secondary
#94C15C
accent
#E7419D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A239E

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

Preview Lab → · Contrast checker → · Palette generator →

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