#562F94#562F94

#562F94 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.157 H 296.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#562F94
RGBrgb(86, 47, 148)
HSLhsl(263, 52%, 38%)
HSVhsv(263, 68%, 58%)
CMYKcmyk(41.9%, 68.2%, 0%, 42%)
CIE-LABlab(29.79, 40.24, -49.23)
CIE-LCHlch(29.79, 63.58, 309.26°)
OKLaboklab(41.23% 0.0704 -0.1405)
OKLCHoklch(41.23% 0.157 296.6)
XYZxyz(10.1982, 6.1494, 28.6609)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F94 #6D942F
analogous
#2F3A94 #562F94 #882F94
triadic
#562F94 #94562F #2F9456
tetradic
#562F94 #942F3A #6D942F #2F9488
square
#562F94 #942F3A #6D942F #2F9488
split-complementary
#562F94 #94882F #3A942F
monochromatic
#201137 #3B2066 #562F94 #713EC2 #936DD1

Accessibility & contrast

On white

9.42
#562F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#562F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F94
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F94#FFFFFF#000000##FFFFFF
##562F941.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#46475D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562f94;
/* rgb */ color: rgb(86, 47, 148);
/* oklch */ color: oklch(41.2% 0.157 296.6);
Tailwind
colors: {
  custom: {
    50: '#8b6ab4',
    500: '#562f94',
    950: '#000000',
  },
}
SCSS
$custom: #562f94;
$custom-light: #8b6ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#562f94",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 263.168,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41229,
    "c": 0.15718,
    "h": 296.6
  },
  "luminance": 0.0615
}

Semantic roles & 50–950 ramp

primary
#562F94
secondary
#99B867
accent
#DB4DA4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #562F94

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

Preview Lab → · Contrast checker → · Palette generator →

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