#562FB3#562FB3

#562FB3 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.194 H 289.4°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#562FB3
RGBrgb(86, 47, 179)
HSLhsl(258, 58%, 44%)
HSVhsv(258, 74%, 70%)
CMYKcmyk(52%, 73.7%, 0%, 29.8%)
CIE-LABlab(32.40, 48.90, -63.68)
CIE-LCHlch(32.40, 80.29, 307.52°)
OKLaboklab(43.9% 0.0644 -0.183)
OKLCHoklch(43.9% 0.194 289.4)
XYZxyz(12.9886, 7.2656, 43.3571)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FB3 #8CB32F
analogous
#2F4AB3 #562FB3 #982FB3
triadic
#562FB3 #B3562F #2FB356
tetradic
#562FB3 #B32F4A #8CB32F #2FB398
square
#562FB3 #B32F4A #8CB32F #2FB398
split-complementary
#562FB3 #B3982F #4AB32F
monochromatic
#271652 #3F2283 #562FB3 #754FD1 #9B7FDD

Accessibility & contrast

On white

8.56
#562FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#562FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FB3
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FB3#FFFFFF#000000##FFFFFF
##562FB31.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#34536E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #562fb3;
/* rgb */ color: rgb(86, 47, 179);
/* oklch */ color: oklch(43.9% 0.194 289.4);
Tailwind
colors: {
  custom: {
    50: '#8f6bcb',
    500: '#562fb3',
    950: '#000000',
  },
}
SCSS
$custom: #562fb3;
$custom-light: #8f6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#562fb3",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 257.727,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43903,
    "c": 0.19397,
    "h": 289.4
  },
  "luminance": 0.07266
}

Semantic roles & 50–950 ramp

primary
#562FB3
secondary
#AFC678
accent
#E246B4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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