#562BA7#562BA7

#562BA7 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.184 H 292.5°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#562BA7
RGBrgb(86, 43, 167)
HSLhsl(261, 59%, 41%)
HSVhsv(261, 74%, 65%)
CMYKcmyk(48.5%, 74.3%, 0%, 34.5%)
CIE-LABlab(30.63, 47.55, -59.41)
CIE-LCHlch(30.63, 76.09, 308.68°)
OKLaboklab(42.32% 0.0707 -0.1704)
OKLCHoklch(42.32% 0.184 292.5)
XYZxyz(11.6747, 6.4958, 37.1904)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562BA7 #7CA72B
analogous
#2B3EA7 #562BA7 #942BA7
triadic
#562BA7 #A7562B #2BA756
tetradic
#562BA7 #A72B3E #7CA72B #2BA794
square
#562BA7 #A72B3E #7CA72B #2BA794
split-complementary
#562BA7 #A7942B #3EA72B
monochromatic
#241246 #3D1E76 #562BA7 #7241CE #9672DB

Accessibility & contrast

On white

9.13
#562BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#562BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562BA7
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562BA7#FFFFFF#000000##FFFFFF
##562BA71.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#3C4C67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #562ba7;
/* rgb */ color: rgb(86, 43, 167);
/* oklch */ color: oklch(42.3% 0.184 292.5);
Tailwind
colors: {
  custom: {
    50: '#8e69c2',
    500: '#562ba7',
    950: '#000000',
  },
}
SCSS
$custom: #562ba7;
$custom-light: #8e69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#562ba7",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 260.806,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42323,
    "c": 0.18448,
    "h": 292.5
  },
  "luminance": 0.06496
}

Semantic roles & 50–950 ramp

primary
#562BA7
secondary
#A4C26C
accent
#E246AC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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