#562F96#562F96

#562F96 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.160 H 296.0°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#562F96
RGBrgb(86, 47, 150)
HSLhsl(263, 52%, 39%)
HSVhsv(263, 69%, 59%)
CMYKcmyk(42.7%, 68.7%, 0%, 41.2%)
CIE-LABlab(29.94, 40.79, -50.20)
CIE-LCHlch(29.94, 64.68, 309.09°)
OKLaboklab(41.39% 0.0701 -0.1434)
OKLCHoklch(41.39% 0.16 296)
XYZxyz(10.3578, 6.2133, 29.5018)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F96 #6F962F
analogous
#2F3C96 #562F96 #892F96
triadic
#562F96 #96562F #2F9656
tetradic
#562F96 #962F3C #6F962F #2F9689
square
#562F96 #962F3C #6F962F #2F9689
split-complementary
#562F96 #96892F #3C962F
monochromatic
#211239 #3B2067 #562F96 #713FC3 #946ED2

Accessibility & contrast

On white

9.36
#562F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#562F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F96
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F96#FFFFFF#000000##FFFFFF
##562F961.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#45485E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562f96;
/* rgb */ color: rgb(86, 47, 150);
/* oklch */ color: oklch(41.4% 0.160 296.0);
Tailwind
colors: {
  custom: {
    50: '#8b6ab6',
    500: '#562f96',
    950: '#000000',
  },
}
SCSS
$custom: #562f96;
$custom-light: #8b6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#562f96",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 262.718,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41392,
    "c": 0.1596,
    "h": 296
  },
  "luminance": 0.06213
}

Semantic roles & 50–950 ramp

primary
#562F96
secondary
#9AB968
accent
#DC4CA5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #562F96

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

Preview Lab → · Contrast checker → · Palette generator →

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