#562F9B#562F9B

#562F9B is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.166 H 294.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#562F9B
RGBrgb(86, 47, 155)
HSLhsl(262, 53%, 40%)
HSVhsv(262, 70%, 61%)
CMYKcmyk(44.5%, 69.7%, 0%, 39.2%)
CIE-LABlab(30.35, 42.18, -52.60)
CIE-LCHlch(30.35, 67.42, 308.72°)
OKLaboklab(41.81% 0.0693 -0.1504)
OKLCHoklch(41.81% 0.166 294.7)
XYZxyz(10.7691, 6.3777, 31.6676)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F9B #749B2F
analogous
#2F3E9B #562F9B #8C2F9B
triadic
#562F9B #9B562F #2F9B56
tetradic
#562F9B #9B2F3E #749B2F #2F9B8C
square
#562F9B #9B2F3E #749B2F #2F9B8C
split-complementary
#562F9B #9B8C2F #3E9B2F
monochromatic
#22133D #3C216C #562F9B #7142C6 #9471D4

Accessibility & contrast

On white

9.23
#562F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#562F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F9B
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F9B#FFFFFF#000000##FFFFFF
##562F9B1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562f9b;
/* rgb */ color: rgb(86, 47, 155);
/* oklch */ color: oklch(41.8% 0.166 294.7);
Tailwind
colors: {
  custom: {
    50: '#8c6ab9',
    500: '#562f9b',
    950: '#000000',
  },
}
SCSS
$custom: #562f9b;
$custom-light: #8c6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#562f9b",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 261.667,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41805,
    "c": 0.16564,
    "h": 294.7
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

primary
#562F9B
secondary
#9EBB6A
accent
#DD4BA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #562F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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