#562E8C#562E8C

#562E8C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.149 H 299.2°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#562E8C
RGBrgb(86, 46, 140)
HSLhsl(266, 51%, 36%)
HSVhsv(266, 67%, 55%)
CMYKcmyk(38.6%, 67.1%, 0%, 45.1%)
CIE-LABlab(28.97, 38.59, -45.63)
CIE-LCHlch(28.97, 59.76, 310.23°)
OKLaboklab(40.45% 0.0725 -0.1299)
OKLCHoklch(40.45% 0.149 299.2)
XYZxyz(9.5472, 5.8258, 25.4273)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E8C #648C2E
analogous
#2E358C #562E8C #852E8C
triadic
#562E8C #8C562E #2E8C56
tetradic
#562E8C #8C2E35 #648C2E #2E8C85
square
#562E8C #8C2E35 #648C2E #2E8C85
split-complementary
#562E8C #8C852E #358C2E
monochromatic
#1D1030 #3A1F5E #562E8C #723DBA #9367CD

Accessibility & contrast

On white

9.70
#562E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#562E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E8C
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E8C#FFFFFF#000000##FFFFFF
##562E8C1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#4A4359
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562e8c;
/* rgb */ color: rgb(86, 46, 140);
/* oklch */ color: oklch(40.4% 0.149 299.2);
Tailwind
colors: {
  custom: {
    50: '#8a69ae',
    500: '#562e8c',
    950: '#000000',
  },
}
SCSS
$custom: #562e8c;
$custom-light: #8a69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#562e8c",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 140
  },
  "hsl": {
    "h": 265.532,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40446,
    "c": 0.14881,
    "h": 299.2
  },
  "luminance": 0.05826
}

Semantic roles & 50–950 ramp

primary
#562E8C
secondary
#91B462
accent
#DA4E9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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