#562F7C#562F7C

#562F7C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.4% C 0.128 H 304.5°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#562F7C
RGBrgb(86, 47, 124)
HSLhsl(270, 45%, 34%)
HSVhsv(270, 62%, 49%)
CMYKcmyk(30.6%, 62.1%, 0%, 51.4%)
CIE-LABlab(28.02, 33.76, -37.16)
CIE-LCHlch(28.02, 50.21, 312.25°)
OKLaboklab(39.4% 0.0723 -0.1051)
OKLCHoklch(39.4% 0.128 304.5)
XYZxyz(8.4916, 5.4667, 19.6727)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F7C #557C2F
analogous
#302F7C #562F7C #7C2F7B
triadic
#562F7C #7C562F #2F7C56
tetradic
#562F7C #7C302F #557C2F #2F7B7C
square
#562F7C #7C302F #557C2F #2F7B7C
split-complementary
#562F7C #7B7C2F #2F7C30
monochromatic
#180D23 #371E50 #562F7C #7540A8 #9362C3

Accessibility & contrast

On white

10.03
#562F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#562F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F7C
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F7C#FFFFFF#000000##FFFFFF
##562F7C1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09417E
Deuteranopia (green-blind)
#1E427A
Tritanopia (blue-blind)
#4F3E51
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562f7c;
/* rgb */ color: rgb(86, 47, 124);
/* oklch */ color: oklch(39.4% 0.128 304.5);
Tailwind
colors: {
  custom: {
    50: '#8969a2',
    500: '#562f7c',
    950: '#000000',
  },
}
SCSS
$custom: #562f7c;
$custom-light: #8969a2;
$custom-dark: #000000;
JSON
{
  "hex": "#562f7c",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 270.39,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39396,
    "c": 0.12754,
    "h": 304.5
  },
  "luminance": 0.05467
}

Semantic roles & 50–950 ramp

primary
#562F7C
secondary
#83AA5C
accent
#D55393
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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