#562BA6#562BA6

#562BA6 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.183 H 292.8°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#562BA6
RGBrgb(86, 43, 166)
HSLhsl(261, 59%, 41%)
HSVhsv(261, 74%, 65%)
CMYKcmyk(48.2%, 74.1%, 0%, 34.9%)
CIE-LABlab(30.54, 47.28, -58.95)
CIE-LCHlch(30.54, 75.57, 308.73°)
OKLaboklab(42.23% 0.0709 -0.1691)
OKLCHoklch(42.23% 0.183 292.8)
XYZxyz(11.5826, 6.4590, 36.7054)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562BA6 #7BA62B
analogous
#2B3DA6 #562BA6 #932BA6
triadic
#562BA6 #A6562B #2BA656
tetradic
#562BA6 #A62B3D #7BA62B #2BA693
square
#562BA6 #A62B3D #7BA62B #2BA693
split-complementary
#562BA6 #A6932B #3DA62B
monochromatic
#241245 #3D1E75 #562BA6 #7241CE #9671DA

Accessibility & contrast

On white

9.16
#562BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#562BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562BA6
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562BA6#FFFFFF#000000##FFFFFF
##562BA61.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#3D4C66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #562ba6;
/* rgb */ color: rgb(86, 43, 166);
/* oklch */ color: oklch(42.2% 0.183 292.8);
Tailwind
colors: {
  custom: {
    50: '#8d69c1',
    500: '#562ba6',
    950: '#000000',
  },
}
SCSS
$custom: #562ba6;
$custom-light: #8d69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#562ba6",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 260.976,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42234,
    "c": 0.18334,
    "h": 292.8
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #562BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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