#562F88#562F88

#562F88 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.142 H 300.2°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#562F88
RGBrgb(86, 47, 136)
HSLhsl(266, 49%, 36%)
HSVhsv(266, 65%, 53%)
CMYKcmyk(36.8%, 65.4%, 0%, 46.7%)
CIE-LABlab(28.87, 36.96, -43.30)
CIE-LCHlch(28.87, 56.93, 310.48°)
OKLaboklab(40.28% 0.0717 -0.1231)
OKLCHoklch(40.28% 0.142 300.2)
XYZxyz(9.2971, 5.7890, 23.9153)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F88 #61882F
analogous
#2F3488 #562F88 #822F88
triadic
#562F88 #88562F #2F8856
tetradic
#562F88 #882F34 #61882F #2F8882
square
#562F88 #882F34 #61882F #2F8882
split-complementary
#562F88 #88822F #34882F
monochromatic
#1C102D #391F5B #562F88 #733FB5 #9367CA

Accessibility & contrast

On white

9.73
#562F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#562F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F88
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F88#FFFFFF#000000##FFFFFF
##562F881.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#084386
Tritanopia (blue-blind)
#4B4357
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562f88;
/* rgb */ color: rgb(86, 47, 136);
/* oklch */ color: oklch(40.3% 0.142 300.2);
Tailwind
colors: {
  custom: {
    50: '#8a6aab',
    500: '#562f88',
    950: '#000000',
  },
}
SCSS
$custom: #562f88;
$custom-light: #8a6aab;
$custom-dark: #000000;
JSON
{
  "hex": "#562f88",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 266.292,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40283,
    "c": 0.14247,
    "h": 300.2
  },
  "luminance": 0.05789
}

Semantic roles & 50–950 ramp

primary
#562F88
secondary
#8EB161
accent
#D8509C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562F88

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

Preview Lab → · Contrast checker → · Palette generator →

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