#562096#562096

#562096 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.177 H 298.5°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#562096
RGBrgb(86, 32, 150)
HSLhsl(267, 65%, 36%)
HSVhsv(267, 79%, 59%)
CMYKcmyk(42.7%, 78.7%, 0%, 41.2%)
CIE-LABlab(27.33, 48.13, -54.46)
CIE-LCHlch(27.33, 72.68, 311.47°)
OKLaboklab(39.54% 0.0847 -0.1558)
OKLCHoklch(39.54% 0.177 298.5)
XYZxyz(9.8579, 5.2133, 29.3351)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562096 #609620
analogous
#202596 #562096 #912096
triadic
#562096 #965620 #209656
tetradic
#562096 #962025 #609620 #209691
square
#562096 #962025 #609620 #209691
split-complementary
#562096 #969120 #259620
monochromatic
#1C0A31 #391564 #562096 #732BC8 #9356DB

Accessibility & contrast

On white

10.28
#562096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#562096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562096
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562096#FFFFFF#000000##FFFFFF
##5620961.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#46405A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562096;
/* rgb */ color: rgb(86, 32, 150);
/* oklch */ color: oklch(39.5% 0.177 298.5);
Tailwind
colors: {
  custom: {
    50: '#8c62b6',
    500: '#562096',
    950: '#000000',
  },
}
SCSS
$custom: #562096;
$custom-light: #8c62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#562096",
  "rgb": {
    "r": 86,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 267.458,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39543,
    "c": 0.17733,
    "h": 298.5
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#562096
secondary
#8DBE53
accent
#E8409B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #562096

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

Preview Lab → · Contrast checker → · Palette generator →

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