#562297#562297

#562297 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.176 H 298.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#562297
RGBrgb(86, 34, 151)
HSLhsl(267, 63%, 36%)
HSVhsv(267, 77%, 59%)
CMYKcmyk(43%, 77.5%, 0%, 40.8%)
CIE-LABlab(27.73, 47.52, -54.43)
CIE-LCHlch(27.73, 72.25, 311.12°)
OKLaboklab(39.85% 0.0827 -0.1557)
OKLCHoklch(39.85% 0.176 298)
XYZxyz(9.9942, 5.3567, 29.7795)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562297 #639722
analogous
#222997 #562297 #912297
triadic
#562297 #975622 #229756
tetradic
#562297 #972229 #639722 #229791
square
#562297 #972229 #639722 #229791
split-complementary
#562297 #979122 #299722
monochromatic
#1D0C33 #3A1765 #562297 #722DC9 #935ADA

Accessibility & contrast

On white

10.14
#562297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#562297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562297
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562297#FFFFFF#000000##FFFFFF
##5622971.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#45415B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562297;
/* rgb */ color: rgb(86, 34, 151);
/* oklch */ color: oklch(39.8% 0.176 298.0);
Tailwind
colors: {
  custom: {
    50: '#8c63b7',
    500: '#562297',
    950: '#000000',
  },
}
SCSS
$custom: #562297;
$custom-light: #8c63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562297",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 266.667,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39846,
    "c": 0.17632,
    "h": 298
  },
  "luminance": 0.05357
}

Semantic roles & 50–950 ramp

primary
#562297
secondary
#90BE57
accent
#E6429D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562297

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

Preview Lab → · Contrast checker → · Palette generator →

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