#562FAF#562FAF

#562FAF is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.189 H 290.2°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#562FAF
RGBrgb(86, 47, 175)
HSLhsl(258, 58%, 44%)
HSVhsv(258, 73%, 69%)
CMYKcmyk(50.9%, 73.1%, 0%, 31.4%)
CIE-LABlab(32.05, 47.78, -61.89)
CIE-LCHlch(32.05, 78.18, 307.67°)
OKLaboklab(43.54% 0.0653 -0.1777)
OKLCHoklch(43.54% 0.189 290.2)
XYZxyz(12.5899, 7.1061, 41.2574)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FAF #88AF2F
analogous
#2F48AF #562FAF #962FAF
triadic
#562FAF #AF562F #2FAF56
tetradic
#562FAF #AF2F48 #88AF2F #2FAF96
square
#562FAF #AF2F48 #88AF2F #2FAF96
split-complementary
#562FAF #AF962F #48AF2F
monochromatic
#27154F #3E227F #562FAF #744CCF #9A7CDC

Accessibility & contrast

On white

8.67
#562FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#562FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FAF
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FAF#FFFFFF#000000##FFFFFF
##562FAF1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#37516C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #562faf;
/* rgb */ color: rgb(86, 47, 175);
/* oklch */ color: oklch(43.5% 0.189 290.2);
Tailwind
colors: {
  custom: {
    50: '#8e6bc8',
    500: '#562faf',
    950: '#000000',
  },
}
SCSS
$custom: #562faf;
$custom-light: #8e6bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#562faf",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 258.281,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43542,
    "c": 0.18932,
    "h": 290.2
  },
  "luminance": 0.07107
}

Semantic roles & 50–950 ramp

primary
#562FAF
secondary
#ACC475
accent
#E147B2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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