#562EA8#562EA8

#562EA8 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.182 H 291.8°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#562EA8
RGBrgb(86, 46, 168)
HSLhsl(260, 57%, 42%)
HSVhsv(260, 73%, 66%)
CMYKcmyk(48.8%, 72.6%, 0%, 34.1%)
CIE-LABlab(31.25, 46.33, -58.99)
CIE-LCHlch(31.25, 75.01, 308.14°)
OKLaboklab(42.79% 0.0678 -0.1692)
OKLCHoklch(42.79% 0.182 291.8)
XYZxyz(11.8806, 6.7591, 37.7169)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562EA8 #80A82E
analogous
#2E43A8 #562EA8 #932EA8
triadic
#562EA8 #A8562E #2EA856
tetradic
#562EA8 #A82E43 #80A82E #2EA893
square
#562EA8 #A82E43 #80A82E #2EA893
split-complementary
#562EA8 #A8932E #43A82E
monochromatic
#251448 #3D2178 #562EA8 #7347CD #9777DA

Accessibility & contrast

On white

8.93
#562EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#562EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562EA8
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562EA8#FFFFFF#000000##FFFFFF
##562EA81.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#3C4E68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #562ea8;
/* rgb */ color: rgb(86, 46, 168);
/* oklch */ color: oklch(42.8% 0.182 291.8);
Tailwind
colors: {
  custom: {
    50: '#8e6ac3',
    500: '#562ea8',
    950: '#000000',
  },
}
SCSS
$custom: #562ea8;
$custom-light: #8e6ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#562ea8",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 259.672,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4279,
    "c": 0.18227,
    "h": 291.8
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#562EA8
secondary
#A7C270
accent
#E048AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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