#562F7B#562F7B

#562F7B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.126 H 304.9°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#562F7B
RGBrgb(86, 47, 123)
HSLhsl(271, 45%, 33%)
HSVhsv(271, 62%, 48%)
CMYKcmyk(30.1%, 61.8%, 0%, 51.8%)
CIE-LABlab(27.96, 33.50, -36.64)
CIE-LCHlch(27.96, 49.64, 312.43°)
OKLaboklab(39.32% 0.0723 -0.1035)
OKLCHoklch(39.32% 0.126 304.9)
XYZxyz(8.4286, 5.4416, 19.3413)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F7B #547B2F
analogous
#302F7B #562F7B #7B2F7A
triadic
#562F7B #7B562F #2F7B56
tetradic
#562F7B #7B302F #547B2F #2F7A7B
square
#562F7B #7B302F #547B2F #2F7A7B
split-complementary
#562F7B #7A7B2F #2F7B30
monochromatic
#180D22 #371E4F #562F7B #7540A7 #9362C3

Accessibility & contrast

On white

10.06
#562F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#562F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F7B
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F7B#FFFFFF#000000##FFFFFF
##562F7B1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C417D
Deuteranopia (green-blind)
#1F4279
Tritanopia (blue-blind)
#503E50
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562f7b;
/* rgb */ color: rgb(86, 47, 123);
/* oklch */ color: oklch(39.3% 0.126 304.9);
Tailwind
colors: {
  custom: {
    50: '#8869a2',
    500: '#562f7b',
    950: '#000000',
  },
}
SCSS
$custom: #562f7b;
$custom-light: #8869a2;
$custom-dark: #000000;
JSON
{
  "hex": "#562f7b",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 270.789,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39325,
    "c": 0.12629,
    "h": 304.9
  },
  "luminance": 0.05442
}

Semantic roles & 50–950 ramp

primary
#562F7B
secondary
#82AA5C
accent
#D45392
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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