#562F9F#562F9F

#562F9F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.170 H 293.7°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#562F9F
RGBrgb(86, 47, 159)
HSLhsl(261, 54%, 40%)
HSVhsv(261, 70%, 62%)
CMYKcmyk(45.9%, 70.4%, 0%, 37.6%)
CIE-LABlab(30.67, 43.29, -54.50)
CIE-LCHlch(30.67, 69.60, 308.46°)
OKLaboklab(42.14% 0.0686 -0.156)
OKLCHoklch(42.14% 0.17 293.7)
XYZxyz(11.1106, 6.5143, 33.4662)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F9F #789F2F
analogous
#2F409F #562F9F #8E2F9F
triadic
#562F9F #9F562F #2F9F56
tetradic
#562F9F #9F2F40 #789F2F #2F9F8E
square
#562F9F #9F2F40 #789F2F #2F9F8E
split-complementary
#562F9F #9F8E2F #409F2F
monochromatic
#231341 #3C2170 #562F9F #7244C8 #9573D6

Accessibility & contrast

On white

9.12
#562F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#562F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F9F
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F9F#FFFFFF#000000##FFFFFF
##562F9F1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#414B63
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #562f9f;
/* rgb */ color: rgb(86, 47, 159);
/* oklch */ color: oklch(42.1% 0.170 293.7);
Tailwind
colors: {
  custom: {
    50: '#8c6bbc',
    500: '#562f9f',
    950: '#000000',
  },
}
SCSS
$custom: #562f9f;
$custom-light: #8c6bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#562f9f",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 260.893,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42142,
    "c": 0.17044,
    "h": 293.7
  },
  "luminance": 0.06515
}

Semantic roles & 50–950 ramp

primary
#562F9F
secondary
#A1BD6D
accent
#DE4AAA
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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