#562188#562188

#562188 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.161 H 302.8°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#562188
RGBrgb(86, 33, 136)
HSLhsl(271, 61%, 33%)
HSVhsv(271, 76%, 53%)
CMYKcmyk(36.8%, 75.7%, 0%, 46.7%)
CIE-LABlab(26.28, 44.14, -47.50)
CIE-LCHlch(26.28, 64.85, 312.90°)
OKLaboklab(38.43% 0.0873 -0.1354)
OKLCHoklch(38.43% 0.161 302.8)
XYZxyz(8.8245, 4.8437, 23.7578)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562188 #538821
analogous
#222188 #562188 #882186
triadic
#562188 #885621 #218856
tetradic
#562188 #882221 #538821 #218688
square
#562188 #882221 #538821 #218688
split-complementary
#562188 #868821 #218822
monochromatic
#180925 #371557 #562188 #752DB9 #944FD4

Accessibility & contrast

On white

10.67
#562188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#562188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562188
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562188#FFFFFF#000000##FFFFFF
##5621881.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#4C3B53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #562188;
/* rgb */ color: rgb(86, 33, 136);
/* oklch */ color: oklch(38.4% 0.161 302.8);
Tailwind
colors: {
  custom: {
    50: '#8b62ab',
    500: '#562188',
    950: '#000000',
  },
}
SCSS
$custom: #562188;
$custom-light: #8b62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562188",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 270.874,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38432,
    "c": 0.16108,
    "h": 302.8
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#562188
secondary
#81B84D
accent
#E44492
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #562188

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

Preview Lab → · Contrast checker → · Palette generator →

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