#562272#562272

#562272 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.136 H 311.4°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#562272
RGBrgb(86, 34, 114)
HSLhsl(279, 54%, 29%)
HSVhsv(279, 70%, 45%)
CMYKcmyk(24.6%, 70.2%, 0%, 55.3%)
CIE-LABlab(24.76, 38.27, -36.06)
CIE-LCHlch(24.76, 52.58, 316.70°)
OKLaboklab(36.81% 0.0896 -0.1018)
OKLCHoklch(36.81% 0.136 311.4)
XYZxyz(7.4465, 4.3376, 16.3613)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562272 #3E7222
analogous
#2E2272 #562272 #722266
triadic
#562272 #725622 #227256
tetradic
#562272 #722E22 #3E7222 #226672
square
#562272 #722E22 #3E7222 #226672
split-complementary
#562272 #667222 #22722E
monochromatic
#120718 #321443 #562272 #7A30A1 #9B46C8

Accessibility & contrast

On white

11.25
#562272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#562272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562272
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562272#FFFFFF#000000##FFFFFF
##5622721.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#193C70
Tritanopia (blue-blind)
#533247
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #562272;
/* rgb */ color: rgb(86, 34, 114);
/* oklch */ color: oklch(36.8% 0.136 311.4);
Tailwind
colors: {
  custom: {
    50: '#89619b',
    500: '#562272',
    950: '#000000',
  },
}
SCSS
$custom: #562272;
$custom-light: #89619b;
$custom-dark: #000000;
JSON
{
  "hex": "#562272",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 279,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3681,
    "c": 0.13561,
    "h": 311.4
  },
  "luminance": 0.04337
}

Semantic roles & 50–950 ramp

primary
#562272
secondary
#6AA54B
accent
#DD4A7E
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #562272

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

Preview Lab → · Contrast checker → · Palette generator →

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