#562181#562181

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

Color values

HEX#562181
RGBrgb(86, 33, 129)
HSLhsl(273, 59%, 32%)
HSVhsv(273, 74%, 51%)
CMYKcmyk(33.3%, 74.4%, 0%, 49.4%)
CIE-LABlab(25.72, 42.40, -44.03)
CIE-LCHlch(25.72, 61.13, 313.91°)
OKLaboklab(37.85% 0.0887 -0.1252)
OKLCHoklch(37.85% 0.153 305.3)
XYZxyz(8.3432, 4.6512, 21.2229)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562181 #4C8121
analogous
#262181 #562181 #81217C
triadic
#562181 #815621 #218156
tetradic
#562181 #812621 #4C8121 #217C81
square
#562181 #812621 #4C8121 #217C81
split-complementary
#562181 #7C8121 #218126
monochromatic
#150820 #361550 #562181 #762DB2 #954BD1

Accessibility & contrast

On white

10.88
#562181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#562181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562181
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562181#FFFFFF#000000##FFFFFF
##5621811.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562181;
/* rgb */ color: rgb(86, 33, 129);
/* oklch */ color: oklch(37.9% 0.153 305.3);
Tailwind
colors: {
  custom: {
    50: '#8a61a6',
    500: '#562181',
    950: '#000000',
  },
}
SCSS
$custom: #562181;
$custom-light: #8a61a6;
$custom-dark: #000000;
JSON
{
  "hex": "#562181",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 273.125,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37852,
    "c": 0.15343,
    "h": 305.3
  },
  "luminance": 0.04651
}

Semantic roles & 50–950 ramp

primary
#562181
secondary
#79B44A
accent
#E2458C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #562181

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

Preview Lab → · Contrast checker → · Palette generator →

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