#562F91#562F91

#562F91 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.154 H 297.4°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#562F91
RGBrgb(86, 47, 145)
HSLhsl(264, 51%, 38%)
HSVhsv(264, 68%, 57%)
CMYKcmyk(40.7%, 67.6%, 0%, 43.1%)
CIE-LABlab(29.55, 39.41, -47.77)
CIE-LCHlch(29.55, 61.93, 309.52°)
OKLaboklab(40.99% 0.0707 -0.1362)
OKLCHoklch(40.99% 0.154 297.4)
XYZxyz(9.9638, 6.0556, 27.4265)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F91 #6A912F
analogous
#2F3991 #562F91 #872F91
triadic
#562F91 #91562F #2F9156
tetradic
#562F91 #912F39 #6A912F #2F9187
square
#562F91 #912F39 #6A912F #2F9187
split-complementary
#562F91 #91872F #39912F
monochromatic
#1F1135 #3B2063 #562F91 #713EBF #936BCF

Accessibility & contrast

On white

9.50
#562F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#562F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F91
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F91#FFFFFF#000000##FFFFFF
##562F911.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#48465C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562f91;
/* rgb */ color: rgb(86, 47, 145);
/* oklch */ color: oklch(41.0% 0.154 297.4);
Tailwind
colors: {
  custom: {
    50: '#8b6ab2',
    500: '#562f91',
    950: '#000000',
  },
}
SCSS
$custom: #562f91;
$custom-light: #8b6ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#562f91",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 263.878,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40987,
    "c": 0.15352,
    "h": 297.4
  },
  "luminance": 0.06056
}

Semantic roles & 50–950 ramp

primary
#562F91
secondary
#96B665
accent
#DB4DA2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #562F91

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

Preview Lab → · Contrast checker → · Palette generator →

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