#5A2285#5A2285

#5A2285 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.158 H 306.1°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5A2285
RGBrgb(90, 34, 133)
HSLhsl(274, 59%, 33%)
HSVhsv(274, 74%, 52%)
CMYKcmyk(32.3%, 74.4%, 0%, 47.8%)
CIE-LABlab(26.77, 43.74, -44.82)
CIE-LCHlch(26.77, 62.62, 314.30°)
OKLaboklab(38.82% 0.0928 -0.1273)
OKLCHoklch(38.82% 0.158 306.1)
XYZxyz(9.0212, 5.0113, 22.6778)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2285 #4D8522
analogous
#282285 #5A2285 #85227E
triadic
#5A2285 #855A22 #22855A
tetradic
#5A2285 #852822 #4D8522 #227E85
square
#5A2285 #852822 #4D8522 #227E85
split-complementary
#5A2285 #7E8522 #228528
monochromatic
#180924 #391654 #5A2285 #7B2EB6 #994FD2

Accessibility & contrast

On white

10.49
#5A2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5A2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2285
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2285#FFFFFF#000000##FFFFFF
##5A22851.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#523951
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a2285;
/* rgb */ color: rgb(90, 34, 133);
/* oklch */ color: oklch(38.8% 0.158 306.1);
Tailwind
colors: {
  custom: {
    50: '#8d63a9',
    500: '#5a2285',
    950: '#000000',
  },
}
SCSS
$custom: #5a2285;
$custom-light: #8d63a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2285",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 273.939,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38818,
    "c": 0.15756,
    "h": 306.1
  },
  "luminance": 0.05011
}

Semantic roles & 50–950 ramp

primary
#5A2285
secondary
#7BB64D
accent
#E2458A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #5A2285

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

Preview Lab → · Contrast checker → · Palette generator →

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