#5A237B#5A237B

#5A237B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.145 H 309.8°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#5A237B
RGBrgb(90, 35, 123)
HSLhsl(278, 56%, 31%)
HSVhsv(278, 72%, 48%)
CMYKcmyk(26.8%, 71.5%, 0%, 51.8%)
CIE-LABlab(26.17, 40.86, -39.48)
CIE-LCHlch(26.17, 56.81, 315.98°)
OKLaboklab(38.16% 0.0932 -0.1117)
OKLCHoklch(38.16% 0.145 309.8)
XYZxyz(8.3919, 4.8060, 19.2206)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A237B #447B23
analogous
#2E237B #5A237B #7B2370
triadic
#5A237B #7B5A23 #237B5A
tetradic
#5A237B #7B2E23 #447B23 #23707B
square
#5A237B #7B2E23 #447B23 #23707B
split-complementary
#5A237B #707B23 #237B2E
monochromatic
#14081C #37154B #5A237B #7D31AB #9C4CCC

Accessibility & contrast

On white

10.71
#5A237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5A237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A237B
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A237B#FFFFFF#000000##FFFFFF
##5A237B1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#143F79
Tritanopia (blue-blind)
#55364C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a237b;
/* rgb */ color: rgb(90, 35, 123);
/* oklch */ color: oklch(38.2% 0.145 309.8);
Tailwind
colors: {
  custom: {
    50: '#8c63a2',
    500: '#5a237b',
    950: '#000000',
  },
}
SCSS
$custom: #5a237b;
$custom-light: #8c63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a237b",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 277.5,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38156,
    "c": 0.14545,
    "h": 309.8
  },
  "luminance": 0.04806
}

Semantic roles & 50–950 ramp

primary
#5A237B
secondary
#71AE4C
accent
#DF4981
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #5A237B

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

Preview Lab → · Contrast checker → · Palette generator →

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