#562E9F#562E9F

#562E9F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.172 H 293.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#562E9F
RGBrgb(86, 46, 159)
HSLhsl(261, 55%, 40%)
HSVhsv(261, 71%, 62%)
CMYKcmyk(45.9%, 71.1%, 0%, 37.6%)
CIE-LABlab(30.49, 43.82, -54.81)
CIE-LCHlch(30.49, 70.17, 308.64°)
OKLaboklab(42.01% 0.0696 -0.1569)
OKLCHoklch(42.01% 0.172 293.9)
XYZxyz(11.0710, 6.4353, 33.4530)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E9F #779F2E
analogous
#2E3E9F #562E9F #8E2E9F
triadic
#562E9F #9F562E #2E9F56
tetradic
#562E9F #9F2E3E #779F2E #2E9F8E
square
#562E9F #9F2E3E #779F2E #2E9F8E
split-complementary
#562E9F #9F8E2E #3E9F2E
monochromatic
#231340 #3C2070 #562E9F #7142C8 #9571D6

Accessibility & contrast

On white

9.18
#562E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#562E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E9F
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E9F#FFFFFF#000000##FFFFFF
##562E9F1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#414A63
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #562e9f;
/* rgb */ color: rgb(86, 46, 159);
/* oklch */ color: oklch(42.0% 0.172 293.9);
Tailwind
colors: {
  custom: {
    50: '#8c6abc',
    500: '#562e9f',
    950: '#000000',
  },
}
SCSS
$custom: #562e9f;
$custom-light: #8c6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#562e9f",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 261.239,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42007,
    "c": 0.17167,
    "h": 293.9
  },
  "luminance": 0.06436
}

Semantic roles & 50–950 ramp

primary
#562E9F
secondary
#A0BE6B
accent
#DE49AA
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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