#562DA7#562DA7

#562DA7 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.182 H 292.2°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#562DA7
RGBrgb(86, 45, 167)
HSLhsl(260, 58%, 42%)
HSVhsv(260, 73%, 65%)
CMYKcmyk(48.5%, 73.1%, 0%, 34.5%)
CIE-LABlab(30.98, 46.55, -58.83)
CIE-LCHlch(30.98, 75.02, 308.36°)
OKLaboklab(42.57% 0.0689 -0.1687)
OKLCHoklch(42.57% 0.182 292.2)
XYZxyz(11.7492, 6.6448, 37.2152)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562DA7 #7EA72D
analogous
#2D41A7 #562DA7 #932DA7
triadic
#562DA7 #A7562D #2DA756
tetradic
#562DA7 #A72D41 #7EA72D #2DA793
square
#562DA7 #A72D41 #7EA72D #2DA793
split-complementary
#562DA7 #A7932D #41A72D
monochromatic
#241347 #3D2077 #562DA7 #7244CD #9775DA

Accessibility & contrast

On white

9.02
#562DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#562DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562DA7
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562DA7#FFFFFF#000000##FFFFFF
##562DA71.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#3C4D67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562da7;
/* rgb */ color: rgb(86, 45, 167);
/* oklch */ color: oklch(42.6% 0.182 292.2);
Tailwind
colors: {
  custom: {
    50: '#8d6ac2',
    500: '#562da7',
    950: '#000000',
  },
}
SCSS
$custom: #562da7;
$custom-light: #8d6ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#562da7",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 260.164,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42573,
    "c": 0.18224,
    "h": 292.2
  },
  "luminance": 0.06645
}

Semantic roles & 50–950 ramp

primary
#562DA7
secondary
#A6C16E
accent
#E147AD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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