#562497#562497

#562497 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.174 H 297.7°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#562497
RGBrgb(86, 36, 151)
HSLhsl(266, 61%, 37%)
HSVhsv(266, 76%, 59%)
CMYKcmyk(43%, 76.2%, 0%, 40.8%)
CIE-LABlab(28.05, 46.61, -53.91)
CIE-LCHlch(28.05, 71.26, 310.84°)
OKLaboklab(40.07% 0.0809 -0.1542)
OKLCHoklch(40.07% 0.174 297.7)
XYZxyz(10.0531, 5.4744, 29.7992)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562497 #659724
analogous
#242C97 #562497 #902497
triadic
#562497 #975624 #249756
tetradic
#562497 #97242C #659724 #249790
square
#562497 #97242C #659724 #249790
split-complementary
#562497 #979024 #2C9724
monochromatic
#1E0C34 #3A1866 #562497 #7230C8 #935DD8

Accessibility & contrast

On white

10.02
#562497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#562497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562497
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562497#FFFFFF#000000##FFFFFF
##5624971.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#45425C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562497;
/* rgb */ color: rgb(86, 36, 151);
/* oklch */ color: oklch(40.1% 0.174 297.7);
Tailwind
colors: {
  custom: {
    50: '#8c64b7',
    500: '#562497',
    950: '#000000',
  },
}
SCSS
$custom: #562497;
$custom-light: #8c64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562497",
  "rgb": {
    "r": 86,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 266.087,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40069,
    "c": 0.17416,
    "h": 297.7
  },
  "luminance": 0.05475
}

Semantic roles & 50–950 ramp

primary
#562497
secondary
#92BD5A
accent
#E5439E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562497

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

Preview Lab → · Contrast checker → · Palette generator →

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