#562182#562182

#562182 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.155 H 304.9°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#562182
RGBrgb(86, 33, 130)
HSLhsl(273, 60%, 32%)
HSVhsv(273, 75%, 51%)
CMYKcmyk(33.8%, 74.6%, 0%, 49%)
CIE-LABlab(25.80, 42.65, -44.53)
CIE-LCHlch(25.80, 61.66, 313.76°)
OKLaboklab(37.93% 0.0885 -0.1267)
OKLCHoklch(37.93% 0.155 304.9)
XYZxyz(8.4100, 4.6779, 21.5746)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562182 #4D8221
analogous
#262182 #562182 #82217D
triadic
#562182 #825621 #218256
tetradic
#562182 #822621 #4D8221 #217D82
square
#562182 #822621 #4D8221 #217D82
split-complementary
#562182 #7D8221 #218226
monochromatic
#150820 #361551 #562182 #762DB3 #954CD2

Accessibility & contrast

On white

10.85
#562182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#562182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562182
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562182#FFFFFF#000000##FFFFFF
##5621821.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#4E384F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #562182;
/* rgb */ color: rgb(86, 33, 130);
/* oklch */ color: oklch(37.9% 0.155 304.9);
Tailwind
colors: {
  custom: {
    50: '#8a62a7',
    500: '#562182',
    950: '#000000',
  },
}
SCSS
$custom: #562182;
$custom-light: #8a62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#562182",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 272.784,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37934,
    "c": 0.15453,
    "h": 304.9
  },
  "luminance": 0.04678
}

Semantic roles & 50–950 ramp

primary
#562182
secondary
#7AB44A
accent
#E3458D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #562182

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

Preview Lab → · Contrast checker → · Palette generator →

#562182 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva