#562895#562895

#562895 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.167 H 297.6°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#562895
RGBrgb(86, 40, 149)
HSLhsl(265, 58%, 37%)
HSVhsv(265, 73%, 58%)
CMYKcmyk(42.3%, 73.2%, 0%, 41.6%)
CIE-LABlab(28.55, 44.16, -51.85)
CIE-LCHlch(28.55, 68.11, 310.42°)
OKLaboklab(40.37% 0.0775 -0.1482)
OKLCHoklch(40.37% 0.167 297.6)
XYZxyz(10.0200, 5.6658, 28.9936)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562895 #679528
analogous
#283195 #562895 #8D2895
triadic
#562895 #955628 #289556
tetradic
#562895 #952831 #679528 #28958D
square
#562895 #952831 #679528 #28958D
split-complementary
#562895 #958D28 #319528
monochromatic
#1E0E35 #3A1B65 #562895 #7235C5 #9362D5

Accessibility & contrast

On white

9.84
#562895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#562895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562895
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562895#FFFFFF#000000##FFFFFF
##5628951.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#46435C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562895;
/* rgb */ color: rgb(86, 40, 149);
/* oklch */ color: oklch(40.4% 0.167 297.6);
Tailwind
colors: {
  custom: {
    50: '#8c66b5',
    500: '#562895',
    950: '#000000',
  },
}
SCSS
$custom: #562895;
$custom-light: #8c66b5;
$custom-dark: #000000;
JSON
{
  "hex": "#562895",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 265.321,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40374,
    "c": 0.16728,
    "h": 297.6
  },
  "luminance": 0.05666
}

Semantic roles & 50–950 ramp

primary
#562895
secondary
#94BB5E
accent
#E147A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #562895

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

Preview Lab → · Contrast checker → · Palette generator →

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