#562FA6#562FA6

#562FA6 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.179 H 292.1°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#562FA6
RGBrgb(86, 47, 166)
HSLhsl(260, 56%, 42%)
HSVhsv(260, 72%, 65%)
CMYKcmyk(48.2%, 71.7%, 0%, 34.9%)
CIE-LABlab(31.26, 45.25, -57.77)
CIE-LCHlch(31.26, 73.38, 308.07°)
OKLaboklab(42.75% 0.0673 -0.1656)
OKLCHoklch(42.75% 0.179 292.1)
XYZxyz(11.7353, 6.7642, 36.7563)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FA6 #7FA62F
analogous
#2F43A6 #562FA6 #922FA6
triadic
#562FA6 #A6562F #2FA656
tetradic
#562FA6 #A62F43 #7FA62F #2FA692
square
#562FA6 #A62F43 #7FA62F #2FA692
split-complementary
#562FA6 #A6922F #43A62F
monochromatic
#251447 #3D2176 #562FA6 #7247CB #9777D8

Accessibility & contrast

On white

8.92
#562FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562FA6
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FA6#FFFFFF#000000##FFFFFF
##562FA61.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#3D4E67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #562fa6;
/* rgb */ color: rgb(86, 47, 166);
/* oklch */ color: oklch(42.7% 0.179 292.1);
Tailwind
colors: {
  custom: {
    50: '#8d6bc1',
    500: '#562fa6',
    950: '#000000',
  },
}
SCSS
$custom: #562fa6;
$custom-light: #8d6bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#562fa6",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 259.664,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42745,
    "c": 0.17875,
    "h": 292.1
  },
  "luminance": 0.06765
}

Semantic roles & 50–950 ramp

primary
#562FA6
secondary
#A6C170
accent
#DF49AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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