#5A236E#5A236E

#5A236E is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.2% C 0.131 H 315.8°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5A236E
RGBrgb(90, 35, 110)
HSLhsl(284, 52%, 28%)
HSVhsv(284, 68%, 43%)
CMYKcmyk(18.2%, 68.2%, 0%, 56.9%)
CIE-LABlab(25.27, 37.84, -32.64)
CIE-LCHlch(25.27, 49.97, 319.22°)
OKLaboklab(37.21% 0.0942 -0.0916)
OKLCHoklch(37.21% 0.131 315.8)
XYZxyz(7.6315, 4.5018, 15.2158)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A236E #376E23
analogous
#34236E #5A236E #6E235C
triadic
#5A236E #6E5A23 #236E5A
tetradic
#5A236E #6E3423 #376E23 #235C6E
square
#5A236E #6E3423 #376E23 #235C6E
split-complementary
#5A236E #5C6E23 #236E34
monochromatic
#130717 #341440 #5A236E #80329C #A347C4

Accessibility & contrast

On white

11.05
#5A236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5A236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A236E
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A236E#FFFFFF#000000##FFFFFF
##5A236E1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043970
Deuteranopia (green-blind)
#233D6C
Tritanopia (blue-blind)
#593145
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a236e;
/* rgb */ color: rgb(90, 35, 110);
/* oklch */ color: oklch(37.2% 0.131 315.8);
Tailwind
colors: {
  custom: {
    50: '#8b6298',
    500: '#5a236e',
    950: '#000000',
  },
}
SCSS
$custom: #5a236e;
$custom-light: #8b6298;
$custom-dark: #000000;
JSON
{
  "hex": "#5a236e",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 284,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37213,
    "c": 0.1314,
    "h": 315.8
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#5A236E
secondary
#62A14C
accent
#DB4D73
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5A236E

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

Preview Lab → · Contrast checker → · Palette generator →

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