#562187#562187

#562187 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.160 H 303.2°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#562187
RGBrgb(86, 33, 135)
HSLhsl(271, 61%, 33%)
HSVhsv(271, 76%, 53%)
CMYKcmyk(36.3%, 75.6%, 0%, 47.1%)
CIE-LABlab(26.20, 43.89, -47.01)
CIE-LCHlch(26.20, 64.32, 313.04°)
OKLaboklab(38.35% 0.0875 -0.1339)
OKLCHoklch(38.35% 0.16 303.2)
XYZxyz(8.7538, 4.8154, 23.3853)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562187 #528721
analogous
#232187 #562187 #872185
triadic
#562187 #875621 #218756
tetradic
#562187 #872321 #528721 #218587
square
#562187 #872321 #528721 #218587
split-complementary
#562187 #858721 #218723
monochromatic
#170925 #371556 #562187 #752DB8 #944FD4

Accessibility & contrast

On white

10.70
#562187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#562187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562187
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562187#FFFFFF#000000##FFFFFF
##5621871.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#4C3A52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #562187;
/* rgb */ color: rgb(86, 33, 135);
/* oklch */ color: oklch(38.3% 0.160 303.2);
Tailwind
colors: {
  custom: {
    50: '#8a62ab',
    500: '#562187',
    950: '#000000',
  },
}
SCSS
$custom: #562187;
$custom-light: #8a62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562187",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 271.176,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38348,
    "c": 0.15999,
    "h": 303.2
  },
  "luminance": 0.04815
}

Semantic roles & 50–950 ramp

primary
#562187
secondary
#80B74D
accent
#E44491
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #562187

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

Preview Lab → · Contrast checker → · Palette generator →

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