#562285#562285

#562285 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.157 H 303.7°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#562285
RGBrgb(86, 34, 133)
HSLhsl(272, 59%, 33%)
HSVhsv(272, 74%, 52%)
CMYKcmyk(35.3%, 74.4%, 0%, 47.8%)
CIE-LABlab(26.20, 42.92, -45.76)
CIE-LCHlch(26.20, 62.74, 313.17°)
OKLaboklab(38.3% 0.0869 -0.1303)
OKLCHoklch(38.3% 0.157 303.7)
XYZxyz(8.6424, 4.8160, 22.6600)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562285 #518522
analogous
#242285 #562285 #852282
triadic
#562285 #855622 #228556
tetradic
#562285 #852422 #518522 #228285
square
#562285 #852422 #518522 #228285
split-complementary
#562285 #828522 #228524
monochromatic
#170924 #361654 #562285 #762EB6 #944FD2

Accessibility & contrast

On white

10.70
#562285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#562285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562285
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562285#FFFFFF#000000##FFFFFF
##5622851.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#4D3A51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #562285;
/* rgb */ color: rgb(86, 34, 133);
/* oklch */ color: oklch(38.3% 0.157 303.7);
Tailwind
colors: {
  custom: {
    50: '#8a62a9',
    500: '#562285',
    950: '#000000',
  },
}
SCSS
$custom: #562285;
$custom-light: #8a62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#562285",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 271.515,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38298,
    "c": 0.15659,
    "h": 303.7
  },
  "luminance": 0.04816
}

Semantic roles & 50–950 ramp

primary
#562285
secondary
#7FB64D
accent
#E24590
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #562285

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

Preview Lab → · Contrast checker → · Palette generator →

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