#562172#562172

#562172 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.137 H 311.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#562172
RGBrgb(86, 33, 114)
HSLhsl(279, 55%, 29%)
HSVhsv(279, 71%, 45%)
CMYKcmyk(24.6%, 71.1%, 0%, 55.3%)
CIE-LABlab(24.58, 38.76, -36.34)
CIE-LCHlch(24.58, 53.14, 316.85°)
OKLaboklab(36.68% 0.0909 -0.1026)
OKLCHoklch(36.68% 0.137 311.5)
XYZxyz(7.4183, 4.2812, 16.3519)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562172 #3D7221
analogous
#2E2172 #562172 #722166
triadic
#562172 #725621 #217256
tetradic
#562172 #722E21 #3D7221 #216672
square
#562172 #722E21 #3D7221 #216672
split-complementary
#562172 #667221 #21722E
monochromatic
#120718 #321343 #562172 #7A2FA1 #9B44C9

Accessibility & contrast

On white

11.31
#562172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#562172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562172
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562172#FFFFFF#000000##FFFFFF
##5621721.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#183B70
Tritanopia (blue-blind)
#533246
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #562172;
/* rgb */ color: rgb(86, 33, 114);
/* oklch */ color: oklch(36.7% 0.137 311.5);
Tailwind
colors: {
  custom: {
    50: '#89619b',
    500: '#562172',
    950: '#000000',
  },
}
SCSS
$custom: #562172;
$custom-light: #89619b;
$custom-dark: #000000;
JSON
{
  "hex": "#562172",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 279.259,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36683,
    "c": 0.13704,
    "h": 311.5
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#562172
secondary
#69A549
accent
#DE497D
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #562172

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

Preview Lab → · Contrast checker → · Palette generator →

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