#562286#562286

#562286 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.158 H 303.4°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#562286
RGBrgb(86, 34, 134)
HSLhsl(271, 60%, 33%)
HSVhsv(271, 75%, 53%)
CMYKcmyk(35.8%, 74.6%, 0%, 47.5%)
CIE-LABlab(26.28, 43.18, -46.25)
CIE-LCHlch(26.28, 63.27, 313.03°)
OKLaboklab(38.38% 0.0867 -0.1317)
OKLCHoklch(38.38% 0.158 303.4)
XYZxyz(8.7119, 4.8437, 23.0256)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562286 #528622
analogous
#242286 #562286 #862284
triadic
#562286 #865622 #228656
tetradic
#562286 #862422 #528622 #228486
square
#562286 #862422 #528622 #228486
split-complementary
#562286 #848622 #228624
monochromatic
#170924 #371655 #562286 #752EB7 #9450D3

Accessibility & contrast

On white

10.67
#562286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#562286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562286
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562286#FFFFFF#000000##FFFFFF
##5622861.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#4C3A52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #562286;
/* rgb */ color: rgb(86, 34, 134);
/* oklch */ color: oklch(38.4% 0.158 303.4);
Tailwind
colors: {
  custom: {
    50: '#8a62aa',
    500: '#562286',
    950: '#000000',
  },
}
SCSS
$custom: #562286;
$custom-light: #8a62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#562286",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 271.2,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38381,
    "c": 0.15768,
    "h": 303.4
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#562286
secondary
#80B64E
accent
#E34591
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #562286

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

Preview Lab → · Contrast checker → · Palette generator →

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