#562F97#562F97

#562F97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.161 H 295.8°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#562F97
RGBrgb(86, 47, 151)
HSLhsl(263, 53%, 39%)
HSVhsv(263, 69%, 59%)
CMYKcmyk(43%, 68.9%, 0%, 40.8%)
CIE-LABlab(30.02, 41.07, -50.69)
CIE-LCHlch(30.02, 65.23, 309.01°)
OKLaboklab(41.47% 0.0699 -0.1448)
OKLCHoklch(41.47% 0.161 295.8)
XYZxyz(10.4387, 6.2456, 29.9277)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F97 #70972F
analogous
#2F3C97 #562F97 #8A2F97
triadic
#562F97 #97562F #2F9756
tetradic
#562F97 #972F3C #70972F #2F978A
square
#562F97 #972F3C #70972F #2F978A
split-complementary
#562F97 #978A2F #3C972F
monochromatic
#21123A #3B2068 #562F97 #7140C3 #946ED2

Accessibility & contrast

On white

9.34
#562F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#562F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F97
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F97#FFFFFF#000000##FFFFFF
##562F971.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#45485F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562f97;
/* rgb */ color: rgb(86, 47, 151);
/* oklch */ color: oklch(41.5% 0.161 295.8);
Tailwind
colors: {
  custom: {
    50: '#8b6ab6',
    500: '#562f97',
    950: '#000000',
  },
}
SCSS
$custom: #562f97;
$custom-light: #8b6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#562f97",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 262.5,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41474,
    "c": 0.16082,
    "h": 295.8
  },
  "luminance": 0.06246
}

Semantic roles & 50–950 ramp

primary
#562F97
secondary
#9BB968
accent
#DC4CA6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #562F97

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

Preview Lab → · Contrast checker → · Palette generator →

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