#562287#562287

#562287 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.159 H 303.0°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#562287
RGBrgb(86, 34, 135)
HSLhsl(271, 60%, 33%)
HSVhsv(271, 75%, 53%)
CMYKcmyk(36.3%, 74.8%, 0%, 47.1%)
CIE-LABlab(26.37, 43.43, -46.74)
CIE-LCHlch(26.37, 63.80, 312.89°)
OKLaboklab(38.46% 0.0865 -0.1332)
OKLCHoklch(38.46% 0.159 303)
XYZxyz(8.7819, 4.8718, 23.3947)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562287 #538722
analogous
#232287 #562287 #872285
triadic
#562287 #875622 #228756
tetradic
#562287 #872322 #538722 #228587
square
#562287 #872322 #538722 #228587
split-complementary
#562287 #858722 #228723
monochromatic
#180925 #371656 #562287 #752EB8 #9450D3

Accessibility & contrast

On white

10.64
#562287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#562287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562287
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562287#FFFFFF#000000##FFFFFF
##5622871.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#4C3B52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #562287;
/* rgb */ color: rgb(86, 34, 135);
/* oklch */ color: oklch(38.5% 0.159 303.0);
Tailwind
colors: {
  custom: {
    50: '#8a62ab',
    500: '#562287',
    950: '#000000',
  },
}
SCSS
$custom: #562287;
$custom-light: #8a62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562287",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 270.891,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38464,
    "c": 0.15879,
    "h": 303
  },
  "luminance": 0.04872
}

Semantic roles & 50–950 ramp

primary
#562287
secondary
#81B74E
accent
#E34592
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #562287

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

Preview Lab → · Contrast checker → · Palette generator →

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