#562EAF#562EAF

#562EAF is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.190 H 290.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#562EAF
RGBrgb(86, 46, 175)
HSLhsl(259, 58%, 43%)
HSVhsv(259, 74%, 69%)
CMYKcmyk(50.9%, 73.7%, 0%, 31.4%)
CIE-LABlab(31.87, 48.28, -62.18)
CIE-LCHlch(31.87, 78.72, 307.83°)
OKLaboklab(43.42% 0.0662 -0.1786)
OKLCHoklch(43.42% 0.19 290.3)
XYZxyz(12.5504, 7.0270, 41.2442)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562EAF #87AF2E
analogous
#2E46AF #562EAF #962EAF
triadic
#562EAF #AF562E #2EAF56
tetradic
#562EAF #AF2E46 #87AF2E #2EAF96
square
#562EAF #AF2E46 #87AF2E #2EAF96
split-complementary
#562EAF #AF962E #46AF2E
monochromatic
#26154E #3E217F #562EAF #744BD0 #997BDC

Accessibility & contrast

On white

8.73
#562EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#562EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562EAF
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562EAF#FFFFFF#000000##FFFFFF
##562EAF1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562eaf;
/* rgb */ color: rgb(86, 46, 175);
/* oklch */ color: oklch(43.4% 0.190 290.3);
Tailwind
colors: {
  custom: {
    50: '#8f6bc8',
    500: '#562eaf',
    950: '#000000',
  },
}
SCSS
$custom: #562eaf;
$custom-light: #8f6bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#562eaf",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 258.605,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43415,
    "c": 0.19043,
    "h": 290.3
  },
  "luminance": 0.07028
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #562EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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