#562B8E#562B8E

#562B8E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.155 H 299.2°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#562B8E
RGBrgb(86, 43, 142)
HSLhsl(266, 54%, 36%)
HSVhsv(266, 70%, 56%)
CMYKcmyk(39.4%, 69.7%, 0%, 44.3%)
CIE-LABlab(28.54, 40.75, -47.57)
CIE-LCHlch(28.54, 62.64, 310.59°)
OKLaboklab(40.18% 0.0757 -0.1356)
OKLCHoklch(40.18% 0.155 299.2)
XYZxyz(9.5829, 5.6591, 26.1734)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B8E #638E2B
analogous
#2B318E #562B8E #882B8E
triadic
#562B8E #8E562B #2B8E56
tetradic
#562B8E #8E2B31 #638E2B #2B8E88
square
#562B8E #8E2B31 #638E2B #2B8E88
split-complementary
#562B8E #8E882B #318E2B
monochromatic
#1D0F30 #3A1D5F #562B8E #7239BD #9363D0

Accessibility & contrast

On white

9.85
#562B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#562B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B8E
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B8E#FFFFFF#000000##FFFFFF
##562B8E1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#494259
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562b8e;
/* rgb */ color: rgb(86, 43, 142);
/* oklch */ color: oklch(40.2% 0.155 299.2);
Tailwind
colors: {
  custom: {
    50: '#8b68b0',
    500: '#562b8e',
    950: '#000000',
  },
}
SCSS
$custom: #562b8e;
$custom-light: #8b68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#562b8e",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 266.061,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40184,
    "c": 0.15531,
    "h": 299.2
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#562B8E
secondary
#90B65F
accent
#DD4B9D
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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