#562097#562097

#562097 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.178 H 298.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#562097
RGBrgb(86, 32, 151)
HSLhsl(267, 65%, 36%)
HSVhsv(267, 79%, 59%)
CMYKcmyk(43%, 78.8%, 0%, 40.8%)
CIE-LABlab(27.42, 48.39, -54.93)
CIE-LCHlch(27.42, 73.20, 311.38°)
OKLaboklab(39.63% 0.0844 -0.1572)
OKLCHoklch(39.63% 0.178 298.2)
XYZxyz(9.9387, 5.2457, 29.7610)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562097 #619720
analogous
#202597 #562097 #912097
triadic
#562097 #975620 #209756
tetradic
#562097 #972025 #619720 #209791
square
#562097 #972025 #619720 #209791
split-complementary
#562097 #979120 #259720
monochromatic
#1C0B32 #391564 #562097 #732BC9 #9356DB

Accessibility & contrast

On white

10.25
#562097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#562097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562097
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562097#FFFFFF#000000##FFFFFF
##5620971.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#46405B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562097;
/* rgb */ color: rgb(86, 32, 151);
/* oklch */ color: oklch(39.6% 0.178 298.2);
Tailwind
colors: {
  custom: {
    50: '#8c62b7',
    500: '#562097',
    950: '#000000',
  },
}
SCSS
$custom: #562097;
$custom-light: #8c62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562097",
  "rgb": {
    "r": 86,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 267.227,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39633,
    "c": 0.17841,
    "h": 298.2
  },
  "luminance": 0.05246
}

Semantic roles & 50–950 ramp

primary
#562097
secondary
#8EBF54
accent
#E8409C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #562097

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

Preview Lab → · Contrast checker → · Palette generator →

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