#562B74#562B74

#562B74 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.124 H 308.8°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#562B74
RGBrgb(86, 43, 116)
HSLhsl(275, 46%, 31%)
HSVhsv(275, 63%, 45%)
CMYKcmyk(25.9%, 62.9%, 0%, 54.5%)
CIE-LABlab(26.64, 33.98, -34.31)
CIE-LCHlch(26.64, 48.29, 314.72°)
OKLaboklab(38.21% 0.0779 -0.0967)
OKLCHoklch(38.21% 0.124 308.8)
XYZxyz(7.8534, 4.9673, 17.0647)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B74 #49742B
analogous
#312B74 #562B74 #742B6D
triadic
#562B74 #74562B #2B7456
tetradic
#562B74 #74312B #49742B #2B6D74
square
#562B74 #74312B #49742B #2B6D74
split-complementary
#562B74 #6D742B #2B7431
monochromatic
#140A1B #351A47 #562B74 #773CA1 #9658C1

Accessibility & contrast

On white

10.53
#562B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#562B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B74
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B74#FFFFFF#000000##FFFFFF
##562B741.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3D76
Deuteranopia (green-blind)
#214072
Tritanopia (blue-blind)
#52394B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #562b74;
/* rgb */ color: rgb(86, 43, 116);
/* oklch */ color: oklch(38.2% 0.124 308.8);
Tailwind
colors: {
  custom: {
    50: '#88679c',
    500: '#562b74',
    950: '#000000',
  },
}
SCSS
$custom: #562b74;
$custom-light: #88679c;
$custom-dark: #000000;
JSON
{
  "hex": "#562b74",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 116
  },
  "hsl": {
    "h": 275.342,
    "s": 45.912,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38215,
    "c": 0.12414,
    "h": 308.8
  },
  "luminance": 0.04967
}

Semantic roles & 50–950 ramp

primary
#562B74
secondary
#76A655
accent
#D65288
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562B74

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

Preview Lab → · Contrast checker → · Palette generator →

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