#562A8C#562A8C

#562A8C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.154 H 300.0°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#562A8C
RGBrgb(86, 42, 140)
HSLhsl(267, 54%, 36%)
HSVhsv(267, 70%, 55%)
CMYKcmyk(38.6%, 70%, 0%, 45.1%)
CIE-LABlab(28.19, 40.74, -46.90)
CIE-LCHlch(28.19, 62.12, 310.98°)
OKLaboklab(39.89% 0.0771 -0.1336)
OKLCHoklch(39.89% 0.154 300)
XYZxyz(9.3982, 5.5277, 25.3777)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A8C #608C2A
analogous
#2A2F8C #562A8C #872A8C
triadic
#562A8C #8C562A #2A8C56
tetradic
#562A8C #8C2A2F #608C2A #2A8C87
square
#562A8C #8C2A2F #608C2A #2A8C87
split-complementary
#562A8C #8C872A #2F8C2A
monochromatic
#1C0E2E #391C5D #562A8C #7338BB #9361D0

Accessibility & contrast

On white

9.97
#562A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#562A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A8C
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A8C#FFFFFF#000000##FFFFFF
##562A8C1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#4A4157
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562a8c;
/* rgb */ color: rgb(86, 42, 140);
/* oklch */ color: oklch(39.9% 0.154 300.0);
Tailwind
colors: {
  custom: {
    50: '#8a67ae',
    500: '#562a8c',
    950: '#000000',
  },
}
SCSS
$custom: #562a8c;
$custom-light: #8a67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#562a8c",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 140
  },
  "hsl": {
    "h": 266.939,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39886,
    "c": 0.15428,
    "h": 300
  },
  "luminance": 0.05528
}

Semantic roles & 50–950 ramp

primary
#562A8C
secondary
#8DB55C
accent
#DD4B9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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