#562174#562174

#562174 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.139 H 310.6°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#562174
RGBrgb(86, 33, 116)
HSLhsl(278, 56%, 29%)
HSVhsv(278, 72%, 45%)
CMYKcmyk(25.9%, 71.6%, 0%, 54.5%)
CIE-LABlab(24.73, 39.24, -37.39)
CIE-LCHlch(24.73, 54.20, 316.38°)
OKLaboklab(36.83% 0.0907 -0.1057)
OKLCHoklch(36.83% 0.139 310.6)
XYZxyz(7.5334, 4.3273, 16.9580)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562174 #3F7421
analogous
#2C2174 #562174 #742169
triadic
#562174 #745621 #217456
tetradic
#562174 #742C21 #3F7421 #216974
square
#562174 #742C21 #3F7421 #216974
split-complementary
#562174 #697421 #21742C
monochromatic
#120718 #331344 #562174 #792FA4 #9A45CA

Accessibility & contrast

On white

11.26
#562174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#562174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562174
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562174#FFFFFF#000000##FFFFFF
##5621741.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#153C72
Tritanopia (blue-blind)
#523348
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #562174;
/* rgb */ color: rgb(86, 33, 116);
/* oklch */ color: oklch(36.8% 0.139 310.6);
Tailwind
colors: {
  custom: {
    50: '#89619d',
    500: '#562174',
    950: '#000000',
  },
}
SCSS
$custom: #562174;
$custom-light: #89619d;
$custom-dark: #000000;
JSON
{
  "hex": "#562174",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 278.313,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36833,
    "c": 0.13922,
    "h": 310.6
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#562174
secondary
#6BA749
accent
#DF497F
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #562174

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

Preview Lab → · Contrast checker → · Palette generator →

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