#562157#562157

#562157 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.9% C 0.108 H 326.9°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#562157
RGBrgb(86, 33, 87)
HSLhsl(299, 45%, 24%)
HSVhsv(299, 62%, 34%)
CMYKcmyk(1.1%, 62.1%, 0%, 65.9%)
CIE-LABlab(22.84, 32.78, -21.48)
CIE-LCHlch(22.84, 39.19, 326.76°)
OKLaboklab(34.87% 0.0908 -0.0592)
OKLCHoklch(34.87% 0.108 326.9)
XYZxyz(6.1018, 3.7546, 9.4183)
Luminance0.0375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562157 #225721
analogous
#3B2157 #562157 #57213D
triadic
#562157 #575621 #215756
tetradic
#562157 #573B21 #225721 #213D57
square
#562157 #573B21 #225721 #213D57
split-complementary
#562157 #3D5721 #21573B
monochromatic
#160816 #2A102B #562157 #823283 #AE43B0

Accessibility & contrast

On white

11.99
#562157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#562157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562157
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562157#FFFFFF#000000##FFFFFF
##5621571.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3259
Deuteranopia (green-blind)
#2C3955
Tritanopia (blue-blind)
#582838
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #562157;
/* rgb */ color: rgb(86, 33, 87);
/* oklch */ color: oklch(34.9% 0.108 326.9);
Tailwind
colors: {
  custom: {
    50: '#886086',
    500: '#562157',
    950: '#000000',
  },
}
SCSS
$custom: #562157;
$custom-light: #886086;
$custom-dark: #000000;
JSON
{
  "hex": "#562157",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 298.889,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34867,
    "c": 0.1084,
    "h": 326.9
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#562157
secondary
#4A8B49
accent
#D55356
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #562157

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

Preview Lab → · Contrast checker → · Palette generator →

#562157 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva