#562893#562893

#562893 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.165 H 298.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#562893
RGBrgb(86, 40, 147)
HSLhsl(266, 57%, 37%)
HSVhsv(266, 73%, 58%)
CMYKcmyk(41.5%, 72.8%, 0%, 42.4%)
CIE-LABlab(28.39, 43.63, -50.90)
CIE-LCHlch(28.39, 67.04, 310.60°)
OKLaboklab(40.2% 0.078 -0.1454)
OKLCHoklch(40.2% 0.165 298.2)
XYZxyz(9.8617, 5.6024, 28.1599)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562893 #659328
analogous
#283093 #562893 #8C2893
triadic
#562893 #935628 #289356
tetradic
#562893 #932830 #659328 #28938C
square
#562893 #932830 #659328 #28938C
split-complementary
#562893 #938C28 #309328
monochromatic
#1E0E33 #3A1B63 #562893 #7235C3 #9361D4

Accessibility & contrast

On white

9.90
#562893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#562893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562893
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562893#FFFFFF#000000##FFFFFF
##5628931.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004396
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#47435B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562893;
/* rgb */ color: rgb(86, 40, 147);
/* oklch */ color: oklch(40.2% 0.165 298.2);
Tailwind
colors: {
  custom: {
    50: '#8b66b4',
    500: '#562893',
    950: '#000000',
  },
}
SCSS
$custom: #562893;
$custom-light: #8b66b4;
$custom-dark: #000000;
JSON
{
  "hex": "#562893",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 147
  },
  "hsl": {
    "h": 265.794,
    "s": 57.219,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40204,
    "c": 0.16498,
    "h": 298.2
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#562893
secondary
#92BA5D
accent
#E0479F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #562893

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

Preview Lab → · Contrast checker → · Palette generator →

#562893 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva