#562F85#562F85

#562F85 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.139 H 301.2°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#562F85
RGBrgb(86, 47, 133)
HSLhsl(267, 48%, 35%)
HSVhsv(267, 65%, 52%)
CMYKcmyk(35.3%, 64.7%, 0%, 47.8%)
CIE-LABlab(28.66, 36.15, -41.79)
CIE-LCHlch(28.66, 55.25, 310.86°)
OKLaboklab(40.06% 0.0719 -0.1186)
OKLCHoklch(40.06% 0.139 301.2)
XYZxyz(9.0869, 5.7049, 22.8082)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F85 #5E852F
analogous
#2F3385 #562F85 #812F85
triadic
#562F85 #85562F #2F8556
tetradic
#562F85 #852F33 #5E852F #2F8581
square
#562F85 #852F33 #5E852F #2F8581
split-complementary
#562F85 #85812F #33852F
monochromatic
#1C0F2B #391F58 #562F85 #733FB2 #9366C9

Accessibility & contrast

On white

9.81
#562F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#562F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F85
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F85#FFFFFF#000000##FFFFFF
##562F851.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#104383
Tritanopia (blue-blind)
#4C4255
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562f85;
/* rgb */ color: rgb(86, 47, 133);
/* oklch */ color: oklch(40.1% 0.139 301.2);
Tailwind
colors: {
  custom: {
    50: '#896aa9',
    500: '#562f85',
    950: '#000000',
  },
}
SCSS
$custom: #562f85;
$custom-light: #896aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#562f85",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 267.209,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40056,
    "c": 0.13875,
    "h": 301.2
  },
  "luminance": 0.05705
}

Semantic roles & 50–950 ramp

primary
#562F85
secondary
#8CB060
accent
#D7509A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562F85

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

Preview Lab → · Contrast checker → · Palette generator →

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