#562A7C#562A7C

#562A7C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.135 H 305.7°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#562A7C
RGBrgb(86, 42, 124)
HSLhsl(272, 49%, 33%)
HSVhsv(272, 66%, 49%)
CMYKcmyk(30.6%, 66.1%, 0%, 51.4%)
CIE-LABlab(26.99, 36.56, -38.83)
CIE-LCHlch(26.99, 53.33, 313.28°)
OKLaboklab(38.64% 0.0789 -0.1099)
OKLCHoklch(38.64% 0.135 305.7)
XYZxyz(8.3030, 5.0897, 19.6099)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A7C #507C2A
analogous
#2D2A7C #562A7C #7C2A79
triadic
#562A7C #7C562A #2A7C56
tetradic
#562A7C #7C2D2A #507C2A #2A797C
square
#562A7C #7C2D2A #507C2A #2A797C
split-complementary
#562A7C #797C2A #2A7C2D
monochromatic
#170B21 #361B4E #562A7C #7639AA #9459C7

Accessibility & contrast

On white

10.41
#562A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#562A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A7C
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A7C#FFFFFF#000000##FFFFFF
##562A7C1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#16407A
Tritanopia (blue-blind)
#4F3B4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562a7c;
/* rgb */ color: rgb(86, 42, 124);
/* oklch */ color: oklch(38.6% 0.135 305.7);
Tailwind
colors: {
  custom: {
    50: '#8966a2',
    500: '#562a7c',
    950: '#000000',
  },
}
SCSS
$custom: #562a7c;
$custom-light: #8966a2;
$custom-dark: #000000;
JSON
{
  "hex": "#562a7c",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 272.195,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38644,
    "c": 0.1353,
    "h": 305.7
  },
  "luminance": 0.0509
}

Semantic roles & 50–950 ramp

primary
#562A7C
secondary
#7EAD55
accent
#D94F8F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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