#5A287C#5A287C

#5A287C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.139 H 308.6°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5A287C
RGBrgb(90, 40, 124)
HSLhsl(276, 51%, 32%)
HSVhsv(276, 68%, 49%)
CMYKcmyk(27.4%, 67.7%, 0%, 51.4%)
CIE-LABlab(27.15, 38.59, -38.54)
CIE-LCHlch(27.15, 54.54, 315.04°)
OKLaboklab(38.88% 0.0871 -0.1089)
OKLCHoklch(38.88% 0.139 308.6)
XYZxyz(8.6126, 5.1466, 19.6046)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A287C #4A7C28
analogous
#30287C #5A287C #7C2874
triadic
#5A287C #7C5A28 #287C5A
tetradic
#5A287C #7C3028 #4A7C28 #28747C
square
#5A287C #7C3028 #4A7C28 #28747C
split-complementary
#5A287C #747C28 #287C30
monochromatic
#170A1F #38194E #5A287C #7C37AA #9A56C8

Accessibility & contrast

On white

10.35
#5A287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5A287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A287C
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A287C#FFFFFF#000000##FFFFFF
##5A287C1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#19417A
Tritanopia (blue-blind)
#55394E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a287c;
/* rgb */ color: rgb(90, 40, 124);
/* oklch */ color: oklch(38.9% 0.139 308.6);
Tailwind
colors: {
  custom: {
    50: '#8c66a2',
    500: '#5a287c',
    950: '#000000',
  },
}
SCSS
$custom: #5a287c;
$custom-light: #8c66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a287c",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 275.714,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38878,
    "c": 0.13947,
    "h": 308.6
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#5A287C
secondary
#77AD52
accent
#DB4D86
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5A287C

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

Preview Lab → · Contrast checker → · Palette generator →

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