#562BA3#562BA3

#562BA3 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.180 H 293.5°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#562BA3
RGBrgb(86, 43, 163)
HSLhsl(262, 58%, 40%)
HSVhsv(262, 74%, 64%)
CMYKcmyk(47.2%, 73.6%, 0%, 36.1%)
CIE-LABlab(30.28, 46.46, -57.57)
CIE-LCHlch(30.28, 73.97, 308.90°)
OKLaboklab(41.97% 0.0716 -0.165)
OKLCHoklch(41.97% 0.18 293.5)
XYZxyz(11.3107, 6.3502, 35.2730)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562BA3 #78A32B
analogous
#2B3CA3 #562BA3 #922BA3
triadic
#562BA3 #A3562B #2BA356
tetradic
#562BA3 #A32B3C #78A32B #2BA392
square
#562BA3 #A32B3C #78A32B #2BA392
split-complementary
#562BA3 #A3922B #3CA32B
monochromatic
#231142 #3C1E73 #562BA3 #723FCC #956FD9

Accessibility & contrast

On white

9.25
#562BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#562BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562BA3
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562BA3#FFFFFF#000000##FFFFFF
##562BA31.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#3F4A64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562ba3;
/* rgb */ color: rgb(86, 43, 163);
/* oklch */ color: oklch(42.0% 0.180 293.5);
Tailwind
colors: {
  custom: {
    50: '#8d68bf',
    500: '#562ba3',
    950: '#000000',
  },
}
SCSS
$custom: #562ba3;
$custom-light: #8d68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#562ba3",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 261.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41967,
    "c": 0.17988,
    "h": 293.5
  },
  "luminance": 0.06351
}

Semantic roles & 50–950 ramp

primary
#562BA3
secondary
#A1C06A
accent
#E146AA
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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