#562BAB#562BAB

#562BAB is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.189 H 291.6°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#562BAB
RGBrgb(86, 43, 171)
HSLhsl(260, 60%, 42%)
HSVhsv(260, 75%, 67%)
CMYKcmyk(49.7%, 74.9%, 0%, 32.9%)
CIE-LABlab(30.99, 48.65, -61.23)
CIE-LCHlch(30.99, 78.20, 308.47°)
OKLaboklab(42.68% 0.0697 -0.1757)
OKLCHoklch(42.68% 0.189 291.6)
XYZxyz(12.0502, 6.6460, 39.1681)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562BAB #80AB2B
analogous
#2B40AB #562BAB #962BAB
triadic
#562BAB #AB562B #2BAB56
tetradic
#562BAB #AB2B40 #80AB2B #2BAB96
square
#562BAB #AB2B40 #80AB2B #2BAB96
split-complementary
#562BAB #AB962B #40AB2B
monochromatic
#251249 #3D1F7A #562BAB #7343D0 #9774DC

Accessibility & contrast

On white

9.02
#562BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#562BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562BAB
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562BAB#FFFFFF#000000##FFFFFF
##562BAB1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#3A4E69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562bab;
/* rgb */ color: rgb(86, 43, 171);
/* oklch */ color: oklch(42.7% 0.189 291.6);
Tailwind
colors: {
  custom: {
    50: '#8e69c5',
    500: '#562bab',
    950: '#000000',
  },
}
SCSS
$custom: #562bab;
$custom-light: #8e69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#562bab",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 260.156,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42684,
    "c": 0.18906,
    "h": 291.6
  },
  "luminance": 0.06646
}

Semantic roles & 50–950 ramp

primary
#562BAB
secondary
#A7C46E
accent
#E345AE
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #562BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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