#5A236A#5A236A

#5A236A is a dark, vivid purple. Relative luminance 0.044; OKLCH L 36.9% C 0.127 H 317.9°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#5A236A
RGBrgb(90, 35, 106)
HSLhsl(286, 50%, 28%)
HSVhsv(286, 67%, 42%)
CMYKcmyk(15.1%, 67%, 0%, 58.4%)
CIE-LABlab(25.00, 36.94, -30.48)
CIE-LCHlch(25.00, 47.89, 320.48°)
OKLaboklab(36.94% 0.0943 -0.0853)
OKLCHoklch(36.94% 0.127 317.9)
XYZxyz(7.4186, 4.4166, 14.0946)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A236A #336A23
analogous
#36236A #5A236A #6A2356
triadic
#5A236A #6A5A23 #236A5A
tetradic
#5A236A #6A3623 #336A23 #23566A
square
#5A236A #6A3623 #336A23 #23566A
split-complementary
#5A236A #566A23 #236A36
monochromatic
#140817 #33143C #5A236A #813298 #A646C2

Accessibility & contrast

On white

11.15
#5A236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5A236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A236A
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A236A#FFFFFF#000000##FFFFFF
##5A236A1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C386C
Deuteranopia (green-blind)
#263D68
Tritanopia (blue-blind)
#5A2F43
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a236a;
/* rgb */ color: rgb(90, 35, 106);
/* oklch */ color: oklch(36.9% 0.127 317.9);
Tailwind
colors: {
  custom: {
    50: '#8b6295',
    500: '#5a236a',
    950: '#000000',
  },
}
SCSS
$custom: #5a236a;
$custom-light: #8b6295;
$custom-dark: #000000;
JSON
{
  "hex": "#5a236a",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 286.479,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3694,
    "c": 0.12713,
    "h": 317.9
  },
  "luminance": 0.04416
}

Semantic roles & 50–950 ramp

primary
#5A236A
secondary
#5E9D4B
accent
#DA4E6D
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5A236A

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

Preview Lab → · Contrast checker → · Palette generator →

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