#562BA5#562BA5

#562BA5 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.182 H 293.0°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#562BA5
RGBrgb(86, 43, 165)
HSLhsl(261, 59%, 41%)
HSVhsv(261, 74%, 65%)
CMYKcmyk(47.9%, 73.9%, 0%, 35.3%)
CIE-LABlab(30.45, 47.00, -58.49)
CIE-LCHlch(30.45, 75.04, 308.79°)
OKLaboklab(42.14% 0.0712 -0.1677)
OKLCHoklch(42.14% 0.182 293)
XYZxyz(11.4913, 6.4224, 36.2242)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562BA5 #7AA52B
analogous
#2B3DA5 #562BA5 #932BA5
triadic
#562BA5 #A5562B #2BA556
tetradic
#562BA5 #A52B3D #7AA52B #2BA593
square
#562BA5 #A52B3D #7AA52B #2BA593
split-complementary
#562BA5 #A5932B #3DA52B
monochromatic
#231244 #3D1E74 #562BA5 #7240CD #9671DA

Accessibility & contrast

On white

9.19
#562BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#562BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562BA5
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562BA5#FFFFFF#000000##FFFFFF
##562BA51.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#3E4B65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #562ba5;
/* rgb */ color: rgb(86, 43, 165);
/* oklch */ color: oklch(42.1% 0.182 293.0);
Tailwind
colors: {
  custom: {
    50: '#8d69c1',
    500: '#562ba5',
    950: '#000000',
  },
}
SCSS
$custom: #562ba5;
$custom-light: #8d69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#562ba5",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 261.148,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42144,
    "c": 0.18219,
    "h": 293
  },
  "luminance": 0.06423
}

Semantic roles & 50–950 ramp

primary
#562BA5
secondary
#A3C16B
accent
#E246AB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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