#562FA5#562FA5

#562FA5 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.178 H 292.3°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#562FA5
RGBrgb(86, 47, 165)
HSLhsl(260, 56%, 42%)
HSVhsv(260, 72%, 65%)
CMYKcmyk(47.9%, 71.5%, 0%, 35.3%)
CIE-LABlab(31.18, 44.97, -57.30)
CIE-LCHlch(31.18, 72.84, 308.12°)
OKLaboklab(42.66% 0.0675 -0.1643)
OKLCHoklch(42.66% 0.178 292.3)
XYZxyz(11.6439, 6.7277, 36.2751)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FA5 #7EA52F
analogous
#2F43A5 #562FA5 #912FA5
triadic
#562FA5 #A5562F #2FA556
tetradic
#562FA5 #A52F43 #7EA52F #2FA591
square
#562FA5 #A52F43 #7EA52F #2FA591
split-complementary
#562FA5 #A5912F #43A52F
monochromatic
#241446 #3D2175 #562FA5 #7247CB #9776D8

Accessibility & contrast

On white

8.95
#562FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562FA5
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FA5#FFFFFF#000000##FFFFFF
##562FA51.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#3D4D67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562fa5;
/* rgb */ color: rgb(86, 47, 165);
/* oklch */ color: oklch(42.7% 0.178 292.3);
Tailwind
colors: {
  custom: {
    50: '#8d6bc1',
    500: '#562fa5',
    950: '#000000',
  },
}
SCSS
$custom: #562fa5;
$custom-light: #8d6bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#562fa5",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 259.831,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42658,
    "c": 0.17757,
    "h": 292.3
  },
  "luminance": 0.06728
}

Semantic roles & 50–950 ramp

primary
#562FA5
secondary
#A6C070
accent
#DF49AD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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