#562158#562158

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

Color values

HEX#562158
RGBrgb(86, 33, 88)
HSLhsl(298, 45%, 24%)
HSVhsv(298, 63%, 35%)
CMYKcmyk(2.3%, 62.5%, 0%, 65.5%)
CIE-LABlab(22.90, 32.98, -22.06)
CIE-LCHlch(22.90, 39.68, 326.23°)
OKLaboklab(34.93% 0.0909 -0.0609)
OKLCHoklch(34.93% 0.109 326.2)
XYZxyz(6.1429, 3.7711, 9.6350)
Luminance0.0377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562158 #235821
analogous
#3A2158 #562158 #58213E
triadic
#562158 #585621 #215856
tetradic
#562158 #583A21 #235821 #213E58
square
#562158 #583A21 #235821 #213E58
split-complementary
#562158 #3E5821 #21583A
monochromatic
#160816 #2B102B #562158 #813285 #AD42B1

Accessibility & contrast

On white

11.97
#562158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562158
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562158#FFFFFF#000000##FFFFFF
##5621581.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A325A
Deuteranopia (green-blind)
#2C3956
Tritanopia (blue-blind)
#582839
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #562158;
/* rgb */ color: rgb(86, 33, 88);
/* oklch */ color: oklch(34.9% 0.109 326.2);
Tailwind
colors: {
  custom: {
    50: '#886087',
    500: '#562158',
    950: '#000000',
  },
}
SCSS
$custom: #562158;
$custom-light: #886087;
$custom-dark: #000000;
JSON
{
  "hex": "#562158",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 297.818,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34927,
    "c": 0.1094,
    "h": 326.2
  },
  "luminance": 0.03771
}

Semantic roles & 50–950 ramp

primary
#562158
secondary
#4B8C49
accent
#D55357
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #562158

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

Preview Lab → · Contrast checker → · Palette generator →

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