#562F76#562F76

#562F76 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.120 H 307.0°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#562F76
RGBrgb(86, 47, 118)
HSLhsl(273, 43%, 32%)
HSVhsv(273, 60%, 46%)
CMYKcmyk(27.1%, 60.2%, 0%, 53.7%)
CIE-LABlab(27.63, 32.20, -34.01)
CIE-LCHlch(27.63, 46.83, 313.44°)
OKLaboklab(38.98% 0.0723 -0.0958)
OKLCHoklch(38.98% 0.12 307)
XYZxyz(8.1236, 5.3196, 17.7348)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F76 #4F762F
analogous
#332F76 #562F76 #762F72
triadic
#562F76 #76562F #2F7656
tetradic
#562F76 #76332F #4F762F #2F7276
square
#562F76 #76332F #4F762F #2F7276
split-complementary
#562F76 #72762F #2F7633
monochromatic
#160C1E #361E4A #562F76 #7640A2 #9460C0

Accessibility & contrast

On white

10.18
#562F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#562F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F76
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F76#FFFFFF#000000##FFFFFF
##562F761.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144078
Deuteranopia (green-blind)
#244274
Tritanopia (blue-blind)
#513C4D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562f76;
/* rgb */ color: rgb(86, 47, 118);
/* oklch */ color: oklch(39.0% 0.120 307.0);
Tailwind
colors: {
  custom: {
    50: '#88699e',
    500: '#562f76',
    950: '#000000',
  },
}
SCSS
$custom: #562f76;
$custom-light: #88699e;
$custom-dark: #000000;
JSON
{
  "hex": "#562f76",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 272.958,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38977,
    "c": 0.12003,
    "h": 307
  },
  "luminance": 0.05319
}

Semantic roles & 50–950 ramp

primary
#562F76
secondary
#7DA75A
accent
#D3558E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562F76

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

Preview Lab → · Contrast checker → · Palette generator →

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