#562F72#562F72

#562F72 is a dark, moderate violet. Relative luminance 0.052; OKLCH L 38.7% C 0.115 H 308.9°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#562F72
RGBrgb(86, 47, 114)
HSLhsl(275, 42%, 32%)
HSVhsv(275, 59%, 45%)
CMYKcmyk(24.6%, 58.8%, 0%, 55.3%)
CIE-LABlab(27.37, 31.18, -31.87)
CIE-LCHlch(27.37, 44.59, 314.37°)
OKLaboklab(38.71% 0.0722 -0.0896)
OKLCHoklch(38.71% 0.115 308.9)
XYZxyz(7.8909, 5.2265, 16.5094)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F72 #4B722F
analogous
#352F72 #562F72 #722F6D
triadic
#562F72 #72562F #2F7256
tetradic
#562F72 #72352F #4B722F #2F6D72
square
#562F72 #72352F #4B722F #2F6D72
split-complementary
#562F72 #6D722F #2F7235
monochromatic
#150B1B #351D47 #562F72 #77419D #955FBD

Accessibility & contrast

On white

10.27
#562F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562F72
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F72#FFFFFF#000000##FFFFFF
##562F721.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193F74
Deuteranopia (green-blind)
#274170
Tritanopia (blue-blind)
#523B4B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562f72;
/* rgb */ color: rgb(86, 47, 114);
/* oklch */ color: oklch(38.7% 0.115 308.9);
Tailwind
colors: {
  custom: {
    50: '#88699b',
    500: '#562f72',
    950: '#000000',
  },
}
SCSS
$custom: #562f72;
$custom-light: #88699b;
$custom-dark: #000000;
JSON
{
  "hex": "#562f72",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 274.925,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38707,
    "c": 0.11504,
    "h": 308.9
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#562F72
secondary
#78A35A
accent
#D1568A
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #562F72

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

Preview Lab → · Contrast checker → · Palette generator →

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