#562D91#562D91

#562D91 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.156 H 297.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#562D91
RGBrgb(86, 45, 145)
HSLhsl(265, 53%, 37%)
HSVhsv(265, 69%, 57%)
CMYKcmyk(40.7%, 69%, 0%, 43.1%)
CIE-LABlab(29.16, 40.50, -48.41)
CIE-LCHlch(29.16, 63.12, 309.91°)
OKLaboklab(40.7% 0.073 -0.1381)
OKLCHoklch(40.7% 0.156 297.9)
XYZxyz(9.8857, 5.8994, 27.4004)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D91 #68912D
analogous
#2D3691 #562D91 #882D91
triadic
#562D91 #91562D #2D9156
tetradic
#562D91 #912D36 #68912D #2D9188
square
#562D91 #912D36 #68912D #2D9188
split-complementary
#562D91 #91882D #36912D
monochromatic
#1F1034 #3A1F62 #562D91 #723BC0 #9368D0

Accessibility & contrast

On white

9.63
#562D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#562D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D91
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D91#FFFFFF#000000##FFFFFF
##562D911.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#48455B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562d91;
/* rgb */ color: rgb(86, 45, 145);
/* oklch */ color: oklch(40.7% 0.156 297.9);
Tailwind
colors: {
  custom: {
    50: '#8b69b2',
    500: '#562d91',
    950: '#000000',
  },
}
SCSS
$custom: #562d91;
$custom-light: #8b69b2;
$custom-dark: #000000;
JSON
{
  "hex": "#562d91",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 264.6,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40703,
    "c": 0.15622,
    "h": 297.9
  },
  "luminance": 0.059
}

Semantic roles & 50–950 ramp

primary
#562D91
secondary
#94B763
accent
#DC4CA1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #562D91

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

Preview Lab → · Contrast checker → · Palette generator →

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