#562F8F#562F8F

#562F8F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.151 H 298.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#562F8F
RGBrgb(86, 47, 143)
HSLhsl(264, 51%, 37%)
HSVhsv(264, 67%, 56%)
CMYKcmyk(39.9%, 67.1%, 0%, 43.9%)
CIE-LABlab(29.40, 38.86, -46.79)
CIE-LCHlch(29.40, 60.82, 309.71°)
OKLaboklab(40.83% 0.071 -0.1333)
OKLCHoklch(40.83% 0.151 298)
XYZxyz(9.8109, 5.9945, 26.6214)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F8F #688F2F
analogous
#2F388F #562F8F #862F8F
triadic
#562F8F #8F562F #2F8F56
tetradic
#562F8F #8F2F38 #688F2F #2F8F86
square
#562F8F #8F2F38 #688F2F #2F8F86
split-complementary
#562F8F #8F862F #388F2F
monochromatic
#1F1133 #3A2061 #562F8F #723EBD #936ACE

Accessibility & contrast

On white

9.55
#562F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#562F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F8F
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F8F#FFFFFF#000000##FFFFFF
##562F8F1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#48455B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562f8f;
/* rgb */ color: rgb(86, 47, 143);
/* oklch */ color: oklch(40.8% 0.151 298.0);
Tailwind
colors: {
  custom: {
    50: '#8a6ab0',
    500: '#562f8f',
    950: '#000000',
  },
}
SCSS
$custom: #562f8f;
$custom-light: #8a6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#562f8f",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 264.375,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40828,
    "c": 0.15107,
    "h": 298
  },
  "luminance": 0.05995
}

Semantic roles & 50–950 ramp

primary
#562F8F
secondary
#94B565
accent
#DA4EA1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #562F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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