#5A239B#5A239B

#5A239B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.180 H 298.8°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5A239B
RGBrgb(90, 35, 155)
HSLhsl(268, 63%, 37%)
HSVhsv(268, 77%, 61%)
CMYKcmyk(41.9%, 77.4%, 0%, 39.2%)
CIE-LABlab(28.75, 48.77, -55.18)
CIE-LCHlch(28.75, 73.65, 311.47°)
OKLaboklab(40.79% 0.0868 -0.1578)
OKLCHoklch(40.79% 0.18 298.8)
XYZxyz(10.7324, 5.7421, 31.5469)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A239B #649B23
analogous
#23289B #5A239B #96239B
triadic
#5A239B #9B5A23 #239B5A
tetradic
#5A239B #9B2328 #649B23 #239B96
square
#5A239B #9B2328 #649B23 #239B96
split-complementary
#5A239B #9B9623 #289B23
monochromatic
#200C37 #3D1869 #5A239B #772ECD #975EDB

Accessibility & contrast

On white

9.77
#5A239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5A239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A239B
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A239B#FFFFFF#000000##FFFFFF
##5A239B1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4A435E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a239b;
/* rgb */ color: rgb(90, 35, 155);
/* oklch */ color: oklch(40.8% 0.180 298.8);
Tailwind
colors: {
  custom: {
    50: '#8f64b9',
    500: '#5a239b',
    950: '#000000',
  },
}
SCSS
$custom: #5a239b;
$custom-light: #8f64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a239b",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 267.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40787,
    "c": 0.18011,
    "h": 298.8
  },
  "luminance": 0.05742
}

Semantic roles & 50–950 ramp

primary
#5A239B
secondary
#91BF5A
accent
#E6429B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A239B

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

Preview Lab → · Contrast checker → · Palette generator →

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