#562F74#562F74

#562F74 is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.8% C 0.118 H 307.9°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#562F74
RGBrgb(86, 47, 116)
HSLhsl(274, 42%, 32%)
HSVhsv(274, 59%, 45%)
CMYKcmyk(25.9%, 59.5%, 0%, 54.5%)
CIE-LABlab(27.50, 31.69, -32.94)
CIE-LCHlch(27.50, 45.71, 313.89°)
OKLaboklab(38.84% 0.0723 -0.0927)
OKLCHoklch(38.84% 0.118 307.9)
XYZxyz(8.0060, 5.2725, 17.1155)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F74 #4D742F
analogous
#342F74 #562F74 #742F70
triadic
#562F74 #74562F #2F7456
tetradic
#562F74 #74342F #4D742F #2F7074
square
#562F74 #74342F #4D742F #2F7074
split-complementary
#562F74 #70742F #2F7434
monochromatic
#150C1D #361D48 #562F74 #7641A0 #955FBE

Accessibility & contrast

On white

10.22
#562F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#562F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F74
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F74#FFFFFF#000000##FFFFFF
##562F741.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173F76
Deuteranopia (green-blind)
#254172
Tritanopia (blue-blind)
#523C4C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562f74;
/* rgb */ color: rgb(86, 47, 116);
/* oklch */ color: oklch(38.8% 0.118 307.9);
Tailwind
colors: {
  custom: {
    50: '#88699c',
    500: '#562f74',
    950: '#000000',
  },
}
SCSS
$custom: #562f74;
$custom-light: #88699c;
$custom-dark: #000000;
JSON
{
  "hex": "#562f74",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 273.913,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38841,
    "c": 0.11754,
    "h": 307.9
  },
  "luminance": 0.05272
}

Semantic roles & 50–950 ramp

primary
#562F74
secondary
#7AA55A
accent
#D2568C
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562F74

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

Preview Lab → · Contrast checker → · Palette generator →

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