#562DA5#562DA5

#562DA5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.180 H 292.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#562DA5
RGBrgb(86, 45, 165)
HSLhsl(261, 57%, 41%)
HSVhsv(261, 73%, 65%)
CMYKcmyk(47.9%, 72.7%, 0%, 35.3%)
CIE-LABlab(30.81, 46.00, -57.91)
CIE-LCHlch(30.81, 73.95, 308.46°)
OKLaboklab(42.4% 0.0693 -0.166)
OKLCHoklch(42.4% 0.18 292.7)
XYZxyz(11.5658, 6.5714, 36.2490)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562DA5 #7CA52D
analogous
#2D40A5 #562DA5 #922DA5
triadic
#562DA5 #A5562D #2DA556
tetradic
#562DA5 #A52D40 #7CA52D #2DA592
square
#562DA5 #A52D40 #7CA52D #2DA592
split-complementary
#562DA5 #A5922D #40A52D
monochromatic
#241345 #3D2075 #562DA5 #7243CC #9673D9

Accessibility & contrast

On white

9.07
#562DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#562DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562DA5
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562DA5#FFFFFF#000000##FFFFFF
##562DA51.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#3E4C66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562da5;
/* rgb */ color: rgb(86, 45, 165);
/* oklch */ color: oklch(42.4% 0.180 292.7);
Tailwind
colors: {
  custom: {
    50: '#8d6ac1',
    500: '#562da5',
    950: '#000000',
  },
}
SCSS
$custom: #562da5;
$custom-light: #8d6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#562da5",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 260.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42397,
    "c": 0.17991,
    "h": 292.7
  },
  "luminance": 0.06572
}

Semantic roles & 50–950 ramp

primary
#562DA5
secondary
#A4C16D
accent
#E047AC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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