#562282#562282

#562282 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.153 H 304.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#562282
RGBrgb(86, 34, 130)
HSLhsl(273, 59%, 32%)
HSVhsv(273, 74%, 51%)
CMYKcmyk(33.8%, 73.8%, 0%, 49%)
CIE-LABlab(25.96, 42.17, -44.26)
CIE-LCHlch(25.96, 61.14, 313.61°)
OKLaboklab(38.05% 0.0875 -0.1259)
OKLCHoklch(38.05% 0.153 304.8)
XYZxyz(8.4381, 4.7342, 21.5840)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562282 #4E8222
analogous
#262282 #562282 #82227E
triadic
#562282 #825622 #228256
tetradic
#562282 #822622 #4E8222 #227E82
square
#562282 #822622 #4E8222 #227E82
split-complementary
#562282 #7E8222 #228226
monochromatic
#160921 #361551 #562282 #762FB3 #954ED1

Accessibility & contrast

On white

10.79
#562282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#562282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562282
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562282#FFFFFF#000000##FFFFFF
##5622821.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#4E3950
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #562282;
/* rgb */ color: rgb(86, 34, 130);
/* oklch */ color: oklch(38.1% 0.153 304.8);
Tailwind
colors: {
  custom: {
    50: '#8a62a7',
    500: '#562282',
    950: '#000000',
  },
}
SCSS
$custom: #562282;
$custom-light: #8a62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#562282",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 272.5,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38053,
    "c": 0.15328,
    "h": 304.8
  },
  "luminance": 0.04734
}

Semantic roles & 50–950 ramp

primary
#562282
secondary
#7CB44C
accent
#E2468D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #562282

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

Preview Lab → · Contrast checker → · Palette generator →

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