#562E9B#562E9B

#562E9B is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.167 H 294.9°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#562E9B
RGBrgb(86, 46, 155)
HSLhsl(262, 54%, 39%)
HSVhsv(262, 70%, 61%)
CMYKcmyk(44.5%, 70.3%, 0%, 39.2%)
CIE-LABlab(30.15, 42.71, -52.92)
CIE-LCHlch(30.15, 68.00, 308.91°)
OKLaboklab(41.67% 0.0703 -0.1514)
OKLCHoklch(41.67% 0.167 294.9)
XYZxyz(10.7296, 6.2987, 31.6544)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E9B #739B2E
analogous
#2E3D9B #562E9B #8D2E9B
triadic
#562E9B #9B562E #2E9B56
tetradic
#562E9B #9B2E3D #739B2E #2E9B8D
square
#562E9B #9B2E3D #739B2E #2E9B8D
split-complementary
#562E9B #9B8D2E #3D9B2E
monochromatic
#22123D #3C206C #562E9B #7140C6 #946FD4

Accessibility & contrast

On white

9.29
#562E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#562E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E9B
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E9B#FFFFFF#000000##FFFFFF
##562E9B1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#434961
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562e9b;
/* rgb */ color: rgb(86, 46, 155);
/* oklch */ color: oklch(41.7% 0.167 294.9);
Tailwind
colors: {
  custom: {
    50: '#8c6ab9',
    500: '#562e9b',
    950: '#000000',
  },
}
SCSS
$custom: #562e9b;
$custom-light: #8c6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#562e9b",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 262.018,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41668,
    "c": 0.16691,
    "h": 294.9
  },
  "luminance": 0.06299
}

Semantic roles & 50–950 ramp

primary
#562E9B
secondary
#9DBC69
accent
#DE4AA8
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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