#562672#562672

#562672 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.130 H 310.7°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#562672
RGBrgb(86, 38, 114)
HSLhsl(278, 50%, 30%)
HSVhsv(278, 67%, 45%)
CMYKcmyk(24.6%, 66.7%, 0%, 55.3%)
CIE-LABlab(25.50, 36.21, -34.86)
CIE-LCHlch(25.50, 50.27, 316.09°)
OKLaboklab(37.35% 0.0846 -0.0983)
OKLCHoklch(37.35% 0.13 310.7)
XYZxyz(7.5676, 4.5797, 16.4017)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562672 #427226
analogous
#302672 #562672 #722668
triadic
#562672 #725626 #267256
tetradic
#562672 #723026 #427226 #266872
square
#562672 #723026 #427226 #266872
split-complementary
#562672 #687226 #267230
monochromatic
#110817 #331744 #562672 #7935A0 #994EC4

Accessibility & contrast

On white

10.96
#562672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#562672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562672
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562672#FFFFFF#000000##FFFFFF
##5626721.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#1D3D70
Tritanopia (blue-blind)
#523548
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #562672;
/* rgb */ color: rgb(86, 38, 114);
/* oklch */ color: oklch(37.3% 0.130 310.7);
Tailwind
colors: {
  custom: {
    50: '#88649b',
    500: '#562672',
    950: '#000000',
  },
}
SCSS
$custom: #562672;
$custom-light: #88649b;
$custom-dark: #000000;
JSON
{
  "hex": "#562672",
  "rgb": {
    "r": 86,
    "g": 38,
    "b": 114
  },
  "hsl": {
    "h": 277.895,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37346,
    "c": 0.12966,
    "h": 310.7
  },
  "luminance": 0.0458
}

Semantic roles & 50–950 ramp

primary
#562672
secondary
#6FA54F
accent
#DA4E82
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #562672

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

Preview Lab → · Contrast checker → · Palette generator →

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