#5A2286#5A2286

#5A2286 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.159 H 305.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5A2286
RGBrgb(90, 34, 134)
HSLhsl(274, 60%, 33%)
HSVhsv(274, 75%, 53%)
CMYKcmyk(32.8%, 74.6%, 0%, 47.5%)
CIE-LABlab(26.85, 43.98, -45.31)
CIE-LCHlch(26.85, 63.15, 314.14°)
OKLaboklab(38.9% 0.0926 -0.1288)
OKLCHoklch(38.9% 0.159 305.7)
XYZxyz(9.0906, 5.0390, 23.0434)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2286 #4E8622
analogous
#282286 #5A2286 #862280
triadic
#5A2286 #865A22 #22865A
tetradic
#5A2286 #862822 #4E8622 #228086
square
#5A2286 #862822 #4E8622 #228086
split-complementary
#5A2286 #808622 #228628
monochromatic
#180924 #391655 #5A2286 #7B2EB7 #9950D3

Accessibility & contrast

On white

10.46
#5A2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5A2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2286
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2286#FFFFFF#000000##FFFFFF
##5A22861.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#523A52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a2286;
/* rgb */ color: rgb(90, 34, 134);
/* oklch */ color: oklch(38.9% 0.159 305.7);
Tailwind
colors: {
  custom: {
    50: '#8d63aa',
    500: '#5a2286',
    950: '#000000',
  },
}
SCSS
$custom: #5a2286;
$custom-light: #8d63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2286",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 273.6,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38899,
    "c": 0.15863,
    "h": 305.7
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#5A2286
secondary
#7CB64E
accent
#E3458A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A2286

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

Preview Lab → · Contrast checker → · Palette generator →

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