#562F7D#562F7D

#562F7D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.129 H 304.1°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#562F7D
RGBrgb(86, 47, 125)
HSLhsl(270, 45%, 34%)
HSVhsv(270, 62%, 49%)
CMYKcmyk(31.2%, 62.4%, 0%, 51%)
CIE-LABlab(28.09, 34.02, -37.68)
CIE-LCHlch(28.09, 50.77, 312.08°)
OKLaboklab(39.47% 0.0723 -0.1066)
OKLCHoklch(39.47% 0.129 304.1)
XYZxyz(8.5551, 5.4922, 20.0075)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F7D #567D2F
analogous
#2F2F7D #562F7D #7D2F7D
triadic
#562F7D #7D562F #2F7D56
tetradic
#562F7D #7D2F2F #567D2F #2F7D7D
square
#562F7D #7D2F2F #567D2F #2F7D7D
split-complementary
#562F7D #7D7D2F #2F7D2F
monochromatic
#190E24 #371E51 #562F7D #7540A9 #9362C4

Accessibility & contrast

On white

10.01
#562F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#562F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F7D
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F7D#FFFFFF#000000##FFFFFF
##562F7D1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07417F
Deuteranopia (green-blind)
#1C427B
Tritanopia (blue-blind)
#4F3F51
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562f7d;
/* rgb */ color: rgb(86, 47, 125);
/* oklch */ color: oklch(39.5% 0.129 304.1);
Tailwind
colors: {
  custom: {
    50: '#896aa3',
    500: '#562f7d',
    950: '#000000',
  },
}
SCSS
$custom: #562f7d;
$custom-light: #896aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#562f7d",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 270,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39468,
    "c": 0.12879,
    "h": 304.1
  },
  "luminance": 0.05492
}

Semantic roles & 50–950 ramp

primary
#562F7D
secondary
#84AB5D
accent
#D55394
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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