#562FB1#562FB1

#562FB1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.192 H 289.8°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#562FB1
RGBrgb(86, 47, 177)
HSLhsl(258, 58%, 44%)
HSVhsv(258, 73%, 69%)
CMYKcmyk(51.4%, 73.4%, 0%, 30.6%)
CIE-LABlab(32.22, 48.34, -62.79)
CIE-LCHlch(32.22, 79.24, 307.59°)
OKLaboklab(43.72% 0.0649 -0.1803)
OKLCHoklch(43.72% 0.192 289.8)
XYZxyz(12.7878, 7.1852, 42.2995)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FB1 #8AB12F
analogous
#2F49B1 #562FB1 #972FB1
triadic
#562FB1 #B1562F #2FB156
tetradic
#562FB1 #B12F49 #8AB12F #2FB197
square
#562FB1 #B12F49 #8AB12F #2FB197
split-complementary
#562FB1 #B1972F #49B12F
monochromatic
#271550 #3F2281 #562FB1 #754DD0 #9A7EDD

Accessibility & contrast

On white

8.62
#562FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#562FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FB1
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FB1#FFFFFF#000000##FFFFFF
##562FB11.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#35526D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #562fb1;
/* rgb */ color: rgb(86, 47, 177);
/* oklch */ color: oklch(43.7% 0.192 289.8);
Tailwind
colors: {
  custom: {
    50: '#8f6bc9',
    500: '#562fb1',
    950: '#000000',
  },
}
SCSS
$custom: #562fb1;
$custom-light: #8f6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#562fb1",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 258,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43722,
    "c": 0.19166,
    "h": 289.8
  },
  "luminance": 0.07186
}

Semantic roles & 50–950 ramp

primary
#562FB1
secondary
#AEC576
accent
#E147B3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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