#562E86#562E86

#562E86 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.141 H 301.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#562E86
RGBrgb(86, 46, 134)
HSLhsl(267, 49%, 35%)
HSVhsv(267, 66%, 53%)
CMYKcmyk(35.8%, 65.7%, 0%, 47.5%)
CIE-LABlab(28.52, 36.98, -42.63)
CIE-LCHlch(28.52, 56.43, 310.94°)
OKLaboklab(39.98% 0.0731 -0.1211)
OKLCHoklch(39.98% 0.141 301.1)
XYZxyz(9.1168, 5.6536, 23.1606)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E86 #5E862E
analogous
#2E3286 #562E86 #822E86
triadic
#562E86 #86562E #2E8656
tetradic
#562E86 #862E32 #5E862E #2E8682
square
#562E86 #862E32 #5E862E #2E8682
split-complementary
#562E86 #86822E #32862E
monochromatic
#1C0F2B #391E58 #562E86 #733EB4 #9364CA

Accessibility & contrast

On white

9.86
#562E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#562E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E86
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E86#FFFFFF#000000##FFFFFF
##562E861.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#0B4384
Tritanopia (blue-blind)
#4C4155
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562e86;
/* rgb */ color: rgb(86, 46, 134);
/* oklch */ color: oklch(40.0% 0.141 301.1);
Tailwind
colors: {
  custom: {
    50: '#8969aa',
    500: '#562e86',
    950: '#000000',
  },
}
SCSS
$custom: #562e86;
$custom-light: #8969aa;
$custom-dark: #000000;
JSON
{
  "hex": "#562e86",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 267.273,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39982,
    "c": 0.14146,
    "h": 301.1
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#562E86
secondary
#8CB15F
accent
#D84F9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562E86

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

Preview Lab → · Contrast checker → · Palette generator →

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