#562FB2#562FB2

#562FB2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.193 H 289.6°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#562FB2
RGBrgb(86, 47, 178)
HSLhsl(258, 58%, 44%)
HSVhsv(258, 74%, 70%)
CMYKcmyk(51.7%, 73.6%, 0%, 30.2%)
CIE-LABlab(32.31, 48.62, -63.24)
CIE-LCHlch(32.31, 79.77, 307.56°)
OKLaboklab(43.81% 0.0646 -0.1817)
OKLCHoklch(43.81% 0.193 289.6)
XYZxyz(12.8878, 7.2252, 42.8264)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FB2 #8BB22F
analogous
#2F49B2 #562FB2 #982FB2
triadic
#562FB2 #B2562F #2FB256
tetradic
#562FB2 #B22F49 #8BB22F #2FB298
square
#562FB2 #B22F49 #8BB22F #2FB298
split-complementary
#562FB2 #B2982F #49B22F
monochromatic
#271551 #3F2282 #562FB2 #754ED0 #9B7EDD

Accessibility & contrast

On white

8.59
#562FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#562FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FB2
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FB2#FFFFFF#000000##FFFFFF
##562FB21.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#35526E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #562fb2;
/* rgb */ color: rgb(86, 47, 178);
/* oklch */ color: oklch(43.8% 0.193 289.6);
Tailwind
colors: {
  custom: {
    50: '#8f6bca',
    500: '#562fb2',
    950: '#000000',
  },
}
SCSS
$custom: #562fb2;
$custom-light: #8f6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#562fb2",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 257.863,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43813,
    "c": 0.19282,
    "h": 289.6
  },
  "luminance": 0.07226
}

Semantic roles & 50–950 ramp

primary
#562FB2
secondary
#AEC677
accent
#E146B3
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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