#562F98#562F98

#562F98 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.162 H 295.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#562F98
RGBrgb(86, 47, 152)
HSLhsl(262, 53%, 39%)
HSVhsv(262, 69%, 60%)
CMYKcmyk(43.4%, 69.1%, 0%, 40.4%)
CIE-LABlab(30.10, 41.34, -51.17)
CIE-LCHlch(30.10, 65.78, 308.94°)
OKLaboklab(41.56% 0.0698 -0.1462)
OKLCHoklch(41.56% 0.162 295.5)
XYZxyz(10.5203, 6.2782, 30.3572)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F98 #71982F
analogous
#2F3C98 #562F98 #8B2F98
triadic
#562F98 #98562F #2F9856
tetradic
#562F98 #982F3C #71982F #2F988B
square
#562F98 #982F3C #71982F #2F988B
split-complementary
#562F98 #988B2F #3C982F
monochromatic
#21123B #3C2169 #562F98 #7140C4 #946FD2

Accessibility & contrast

On white

9.31
#562F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#562F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F98
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F98#FFFFFF#000000##FFFFFF
##562F981.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#44485F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562f98;
/* rgb */ color: rgb(86, 47, 152);
/* oklch */ color: oklch(41.6% 0.162 295.5);
Tailwind
colors: {
  custom: {
    50: '#8b6ab7',
    500: '#562f98',
    950: '#000000',
  },
}
SCSS
$custom: #562f98;
$custom-light: #8b6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#562f98",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 262.286,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41556,
    "c": 0.16202,
    "h": 295.5
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#562F98
secondary
#9CBA69
accent
#DC4CA6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0711
muted
#7D7A80

Preview Lab

Preview with #562F98

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

Preview Lab → · Contrast checker → · Palette generator →

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