#562A8A#562A8A

#562A8A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.152 H 300.6°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#562A8A
RGBrgb(86, 42, 138)
HSLhsl(268, 53%, 35%)
HSVhsv(268, 70%, 54%)
CMYKcmyk(37.7%, 69.6%, 0%, 45.9%)
CIE-LABlab(28.03, 40.21, -45.91)
CIE-LCHlch(28.03, 61.03, 311.22°)
OKLaboklab(39.73% 0.0774 -0.1307)
OKLCHoklch(39.73% 0.152 300.6)
XYZxyz(9.2520, 5.4693, 24.6081)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A8A #5E8A2A
analogous
#2A2E8A #562A8A #862A8A
triadic
#562A8A #8A562A #2A8A56
tetradic
#562A8A #8A2A2E #5E8A2A #2A8A86
square
#562A8A #8A2A2E #5E8A2A #2A8A86
split-complementary
#562A8A #8A862A #2E8A2A
monochromatic
#1C0D2C #391C5B #562A8A #7338B9 #9360CF

Accessibility & contrast

On white

10.03
#562A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#562A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A8A
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A8A#FFFFFF#000000##FFFFFF
##562A8A1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#4B4056
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562a8a;
/* rgb */ color: rgb(86, 42, 138);
/* oklch */ color: oklch(39.7% 0.152 300.6);
Tailwind
colors: {
  custom: {
    50: '#8a67ad',
    500: '#562a8a',
    950: '#000000',
  },
}
SCSS
$custom: #562a8a;
$custom-light: #8a67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#562a8a",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 267.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39725,
    "c": 0.15192,
    "h": 300.6
  },
  "luminance": 0.05469
}

Semantic roles & 50–950 ramp

primary
#562A8A
secondary
#8CB45B
accent
#DD4B9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562A8A

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

Preview Lab → · Contrast checker → · Palette generator →

#562A8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva