#562FA7#562FA7

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

Color values

HEX#562FA7
RGBrgb(86, 47, 167)
HSLhsl(260, 56%, 42%)
HSVhsv(260, 72%, 65%)
CMYKcmyk(48.5%, 71.9%, 0%, 34.5%)
CIE-LABlab(31.35, 45.53, -58.23)
CIE-LCHlch(31.35, 73.92, 308.02°)
OKLaboklab(42.83% 0.0671 -0.167)
OKLCHoklch(42.83% 0.18 291.9)
XYZxyz(11.8274, 6.8011, 37.2413)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FA7 #80A72F
analogous
#2F44A7 #562FA7 #922FA7
triadic
#562FA7 #A7562F #2FA756
tetradic
#562FA7 #A72F44 #80A72F #2FA792
square
#562FA7 #A72F44 #80A72F #2FA792
split-complementary
#562FA7 #A7922F #44A72F
monochromatic
#251447 #3D2277 #562FA7 #7348CB #9778D9

Accessibility & contrast

On white

8.90
#562FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#562FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FA7
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FA7#FFFFFF#000000##FFFFFF
##562FA71.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562fa7;
/* rgb */ color: rgb(86, 47, 167);
/* oklch */ color: oklch(42.8% 0.180 291.9);
Tailwind
colors: {
  custom: {
    50: '#8d6bc2',
    500: '#562fa7',
    950: '#000000',
  },
}
SCSS
$custom: #562fa7;
$custom-light: #8d6bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#562fa7",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 259.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42832,
    "c": 0.17994,
    "h": 291.9
  },
  "luminance": 0.06801
}

Semantic roles & 50–950 ramp

primary
#562FA7
secondary
#A7C171
accent
#DF48AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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