#562F95#562F95

#562F95 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.158 H 296.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#562F95
RGBrgb(86, 47, 149)
HSLhsl(263, 52%, 38%)
HSVhsv(263, 68%, 58%)
CMYKcmyk(42.3%, 68.5%, 0%, 41.6%)
CIE-LABlab(29.87, 40.51, -49.72)
CIE-LCHlch(29.87, 64.14, 309.17°)
OKLaboklab(41.31% 0.0702 -0.142)
OKLCHoklch(41.31% 0.158 296.3)
XYZxyz(10.2777, 6.1812, 29.0795)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F95 #6E952F
analogous
#2F3B95 #562F95 #892F95
triadic
#562F95 #95562F #2F9556
tetradic
#562F95 #952F3B #6E952F #2F9589
square
#562F95 #952F3B #6E952F #2F9589
split-complementary
#562F95 #95892F #3B952F
monochromatic
#201238 #3B2066 #562F95 #713FC2 #936DD1

Accessibility & contrast

On white

9.39
#562F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#562F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F95
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F95#FFFFFF#000000##FFFFFF
##562F951.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#46475E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562f95;
/* rgb */ color: rgb(86, 47, 149);
/* oklch */ color: oklch(41.3% 0.158 296.3);
Tailwind
colors: {
  custom: {
    50: '#8b6ab5',
    500: '#562f95',
    950: '#000000',
  },
}
SCSS
$custom: #562f95;
$custom-light: #8b6ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#562f95",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 262.941,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4131,
    "c": 0.15839,
    "h": 296.3
  },
  "luminance": 0.06181
}

Semantic roles & 50–950 ramp

primary
#562F95
secondary
#99B867
accent
#DB4CA5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #562F95

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

Preview Lab → · Contrast checker → · Palette generator →

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