#562FB6#562FB6

#562FB6 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.197 H 288.8°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#562FB6
RGBrgb(86, 47, 182)
HSLhsl(257, 59%, 45%)
HSVhsv(257, 74%, 71%)
CMYKcmyk(52.7%, 74.2%, 0%, 28.6%)
CIE-LABlab(32.67, 49.75, -65.02)
CIE-LCHlch(32.67, 81.87, 307.42°)
OKLaboklab(44.18% 0.0637 -0.1869)
OKLCHoklch(44.18% 0.197 288.8)
XYZxyz(13.2953, 7.3882, 44.9724)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FB6 #8FB62F
analogous
#2F4CB6 #562FB6 #992FB6
triadic
#562FB6 #B6562F #2FB656
tetradic
#562FB6 #B62F4C #8FB62F #2FB699
square
#562FB6 #B62F4C #8FB62F #2FB699
split-complementary
#562FB6 #B6992F #4CB62F
monochromatic
#281655 #3F2285 #562FB6 #7650D2 #9C81DE

Accessibility & contrast

On white

8.48
#562FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#562FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FB6
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FB6#FFFFFF#000000##FFFFFF
##562FB61.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#315470
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #562fb6;
/* rgb */ color: rgb(86, 47, 182);
/* oklch */ color: oklch(44.2% 0.197 288.8);
Tailwind
colors: {
  custom: {
    50: '#8f6ccd',
    500: '#562fb6',
    950: '#000000',
  },
}
SCSS
$custom: #562fb6;
$custom-light: #8f6ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#562fb6",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 257.333,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44177,
    "c": 0.19744,
    "h": 288.8
  },
  "luminance": 0.07389
}

Semantic roles & 50–950 ramp

primary
#562FB6
secondary
#B1C779
accent
#E246B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #562FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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