#562B7F#562B7F

#562B7F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.137 H 304.3°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#562B7F
RGBrgb(86, 43, 127)
HSLhsl(271, 49%, 33%)
HSVhsv(271, 66%, 50%)
CMYKcmyk(32.3%, 66.1%, 0%, 50.2%)
CIE-LABlab(27.40, 36.79, -40.05)
CIE-LCHlch(27.40, 54.38, 312.57°)
OKLaboklab(39.01% 0.0774 -0.1135)
OKLCHoklch(39.01% 0.137 304.3)
XYZxyz(8.5315, 5.2385, 20.6362)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B7F #547F2B
analogous
#2C2B7F #562B7F #7F2B7E
triadic
#562B7F #7F562B #2B7F56
tetradic
#562B7F #7F2C2B #547F2B #2B7E7F
square
#562B7F #7F2C2B #547F2B #2B7E7F
split-complementary
#562B7F #7E7F2B #2B7F2C
monochromatic
#180C24 #371C51 #562B7F #753AAD #935CC8

Accessibility & contrast

On white

10.26
#562B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#562B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B7F
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B7F#FFFFFF#000000##FFFFFF
##562B7F1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#13417D
Tritanopia (blue-blind)
#4E3D51
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562b7f;
/* rgb */ color: rgb(86, 43, 127);
/* oklch */ color: oklch(39.0% 0.137 304.3);
Tailwind
colors: {
  custom: {
    50: '#8967a5',
    500: '#562b7f',
    950: '#000000',
  },
}
SCSS
$custom: #562b7f;
$custom-light: #8967a5;
$custom-dark: #000000;
JSON
{
  "hex": "#562b7f",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 270.714,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39012,
    "c": 0.13739,
    "h": 304.3
  },
  "luminance": 0.05238
}

Semantic roles & 50–950 ramp

primary
#562B7F
secondary
#82AE58
accent
#D94F92
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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