#562086#562086

#562086 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.160 H 303.7°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#562086
RGBrgb(86, 32, 134)
HSLhsl(272, 61%, 33%)
HSVhsv(272, 76%, 53%)
CMYKcmyk(35.8%, 76.1%, 0%, 47.5%)
CIE-LABlab(25.96, 44.10, -46.78)
CIE-LCHlch(25.96, 64.29, 313.31°)
OKLaboklab(38.15% 0.0887 -0.1332)
OKLCHoklch(38.15% 0.16 303.7)
XYZxyz(8.6563, 4.7327, 23.0071)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562086 #508620
analogous
#232086 #562086 #862083
triadic
#562086 #865620 #208656
tetradic
#562086 #862320 #508620 #208386
square
#562086 #862320 #508620 #208386
split-complementary
#562086 #838620 #208623
monochromatic
#170823 #361455 #562086 #762CB7 #944CD4

Accessibility & contrast

On white

10.79
#562086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#562086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562086
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562086#FFFFFF#000000##FFFFFF
##5620861.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#4C3951
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #562086;
/* rgb */ color: rgb(86, 32, 134);
/* oklch */ color: oklch(38.2% 0.160 303.7);
Tailwind
colors: {
  custom: {
    50: '#8a61aa',
    500: '#562086',
    950: '#000000',
  },
}
SCSS
$custom: #562086;
$custom-light: #8a61aa;
$custom-dark: #000000;
JSON
{
  "hex": "#562086",
  "rgb": {
    "r": 86,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 271.765,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38151,
    "c": 0.16008,
    "h": 303.7
  },
  "luminance": 0.04733
}

Semantic roles & 50–950 ramp

primary
#562086
secondary
#7EB74B
accent
#E5438F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #562086

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

Preview Lab → · Contrast checker → · Palette generator →

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