#562F7E#562F7E

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

Color values

HEX#562F7E
RGBrgb(86, 47, 126)
HSLhsl(270, 46%, 34%)
HSVhsv(270, 63%, 49%)
CMYKcmyk(31.7%, 62.7%, 0%, 50.6%)
CIE-LABlab(28.16, 34.28, -38.20)
CIE-LCHlch(28.16, 51.33, 311.91°)
OKLaboklab(39.54% 0.0723 -0.1081)
OKLCHoklch(39.54% 0.13 303.8)
XYZxyz(8.6193, 5.5178, 20.3456)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F7E #577E2F
analogous
#2F307E #562F7E #7E2F7E
triadic
#562F7E #7E562F #2F7E56
tetradic
#562F7E #7E2F30 #577E2F #2F7E7E
square
#562F7E #7E2F30 #577E2F #2F7E7E
split-complementary
#562F7E #7E7E2F #307E2F
monochromatic
#190E25 #381E51 #562F7E #7440AB #9363C5

Accessibility & contrast

On white

9.98
#562F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562F7E
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F7E#FFFFFF#000000##FFFFFF
##562F7E1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044281
Deuteranopia (green-blind)
#1B427C
Tritanopia (blue-blind)
#4F3F52
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562f7e;
/* rgb */ color: rgb(86, 47, 126);
/* oklch */ color: oklch(39.5% 0.130 303.8);
Tailwind
colors: {
  custom: {
    50: '#896aa4',
    500: '#562f7e',
    950: '#000000',
  },
}
SCSS
$custom: #562f7e;
$custom-light: #896aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#562f7e",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 269.62,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3954,
    "c": 0.13004,
    "h": 303.8
  },
  "luminance": 0.05518
}

Semantic roles & 50–950 ramp

primary
#562F7E
secondary
#85AC5D
accent
#D55295
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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