#562B9F#562B9F

#562B9F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.175 H 294.4°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#562B9F
RGBrgb(86, 43, 159)
HSLhsl(262, 57%, 40%)
HSVhsv(262, 73%, 62%)
CMYKcmyk(45.9%, 73%, 0%, 37.6%)
CIE-LABlab(29.93, 45.36, -55.71)
CIE-LCHlch(29.93, 71.84, 309.15°)
OKLaboklab(41.62% 0.0725 -0.1595)
OKLCHoklch(41.62% 0.175 294.4)
XYZxyz(10.9579, 6.2091, 33.4153)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B9F #749F2B
analogous
#2B3A9F #562B9F #902B9F
triadic
#562B9F #9F562B #2B9F56
tetradic
#562B9F #9F2B3A #749F2B #2B9F90
square
#562B9F #9F2B3A #749F2B #2B9F90
split-complementary
#562B9F #9F902B #3A9F2B
monochromatic
#22113F #3C1E6F #562B9F #713DCA #946DD7

Accessibility & contrast

On white

9.37
#562B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562B9F
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B9F#FFFFFF#000000##FFFFFF
##562B9F1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#414962
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562b9f;
/* rgb */ color: rgb(86, 43, 159);
/* oklch */ color: oklch(41.6% 0.175 294.4);
Tailwind
colors: {
  custom: {
    50: '#8d68bc',
    500: '#562b9f',
    950: '#000000',
  },
}
SCSS
$custom: #562b9f;
$custom-light: #8d68bc;
$custom-dark: #000000;
JSON
{
  "hex": "#562b9f",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 262.241,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41616,
    "c": 0.17525,
    "h": 294.4
  },
  "luminance": 0.06209
}

Semantic roles & 50–950 ramp

primary
#562B9F
secondary
#9EBE67
accent
#E147A8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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