#562986#562986

#562986 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.149 H 302.1°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#562986
RGBrgb(86, 41, 134)
HSLhsl(269, 53%, 34%)
HSVhsv(269, 69%, 53%)
CMYKcmyk(35.8%, 69.4%, 0%, 47.5%)
CIE-LABlab(27.53, 39.68, -44.23)
CIE-LCHlch(27.53, 59.42, 311.90°)
OKLaboklab(39.27% 0.0791 -0.1258)
OKLCHoklch(39.27% 0.149 302.1)
XYZxyz(8.9327, 5.2855, 23.0992)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562986 #598629
analogous
#292B86 #562986 #852986
triadic
#562986 #865629 #298656
tetradic
#562986 #86292B #598629 #298685
square
#562986 #86292B #598629 #298685
split-complementary
#562986 #868529 #2B8629
monochromatic
#1A0C28 #381B57 #562986 #7437B5 #935CCD

Accessibility & contrast

On white

10.21
#562986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#562986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562986
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562986#FFFFFF#000000##FFFFFF
##5629861.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#004184
Tritanopia (blue-blind)
#4C3E54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562986;
/* rgb */ color: rgb(86, 41, 134);
/* oklch */ color: oklch(39.3% 0.149 302.1);
Tailwind
colors: {
  custom: {
    50: '#8a66aa',
    500: '#562986',
    950: '#000000',
  },
}
SCSS
$custom: #562986;
$custom-light: #8a66aa;
$custom-dark: #000000;
JSON
{
  "hex": "#562986",
  "rgb": {
    "r": 86,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 269.032,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3927,
    "c": 0.14858,
    "h": 302.1
  },
  "luminance": 0.05286
}

Semantic roles & 50–950 ramp

primary
#562986
secondary
#87B358
accent
#DD4B96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562986

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

Preview Lab → · Contrast checker → · Palette generator →

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