#562E71#562E71

#562E71 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.5% C 0.116 H 309.6°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#562E71
RGBrgb(86, 46, 113)
HSLhsl(276, 42%, 31%)
HSVhsv(276, 59%, 44%)
CMYKcmyk(23.9%, 59.3%, 0%, 55.7%)
CIE-LABlab(27.09, 31.51, -31.69)
CIE-LCHlch(27.09, 44.69, 314.84°)
OKLaboklab(38.48% 0.0736 -0.089)
OKLCHoklch(38.48% 0.116 309.6)
XYZxyz(7.7948, 5.1248, 16.1981)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E71 #49712E
analogous
#342E71 #562E71 #712E6A
triadic
#562E71 #71562E #2E7156
tetradic
#562E71 #71342E #49712E #2E6A71
square
#562E71 #71342E #49712E #2E6A71
split-complementary
#562E71 #6A712E #2E7134
monochromatic
#140B1A #351C46 #562E71 #77409C #965DBD

Accessibility & contrast

On white

10.37
#562E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#562E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E71
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E71#FFFFFF#000000##FFFFFF
##562E711.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183E73
Deuteranopia (green-blind)
#27416F
Tritanopia (blue-blind)
#523A4B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562e71;
/* rgb */ color: rgb(86, 46, 113);
/* oklch */ color: oklch(38.5% 0.116 309.6);
Tailwind
colors: {
  custom: {
    50: '#88699a',
    500: '#562e71',
    950: '#000000',
  },
}
SCSS
$custom: #562e71;
$custom-light: #88699a;
$custom-dark: #000000;
JSON
{
  "hex": "#562e71",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 275.821,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38479,
    "c": 0.1155,
    "h": 309.6
  },
  "luminance": 0.05125
}

Semantic roles & 50–950 ramp

primary
#562E71
secondary
#76A258
accent
#D25688
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562E71

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

Preview Lab → · Contrast checker → · Palette generator →

#562E71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva