#562DAF#562DAF

#562DAF is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.192 H 290.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#562DAF
RGBrgb(86, 45, 175)
HSLhsl(259, 59%, 43%)
HSVhsv(259, 74%, 69%)
CMYKcmyk(50.9%, 74.3%, 0%, 31.4%)
CIE-LABlab(31.69, 48.78, -62.47)
CIE-LCHlch(31.69, 79.26, 307.99°)
OKLaboklab(43.29% 0.067 -0.1794)
OKLCHoklch(43.29% 0.192 290.5)
XYZxyz(12.5118, 6.9498, 41.2313)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562DAF #86AF2D
analogous
#2D45AF #562DAF #972DAF
triadic
#562DAF #AF562D #2DAF56
tetradic
#562DAF #AF2D45 #86AF2D #2DAF97
square
#562DAF #AF2D45 #86AF2D #2DAF97
split-complementary
#562DAF #AF972D #45AF2D
monochromatic
#26144E #3E207E #562DAF #7449D0 #997ADD

Accessibility & contrast

On white

8.79
#562DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#562DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562DAF
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562DAF#FFFFFF#000000##FFFFFF
##562DAF1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#37506C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #562daf;
/* rgb */ color: rgb(86, 45, 175);
/* oklch */ color: oklch(43.3% 0.192 290.5);
Tailwind
colors: {
  custom: {
    50: '#8f6ac8',
    500: '#562daf',
    950: '#000000',
  },
}
SCSS
$custom: #562daf;
$custom-light: #8f6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#562daf",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 258.923,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43291,
    "c": 0.19151,
    "h": 290.5
  },
  "luminance": 0.0695
}

Semantic roles & 50–950 ramp

primary
#562DAF
secondary
#ABC573
accent
#E246B1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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