#562FA1#562FA1

#562FA1 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.173 H 293.3°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#562FA1
RGBrgb(86, 47, 161)
HSLhsl(261, 55%, 41%)
HSVhsv(261, 71%, 63%)
CMYKcmyk(46.6%, 70.8%, 0%, 36.9%)
CIE-LABlab(30.84, 43.85, -55.44)
CIE-LCHlch(30.84, 70.69, 308.34°)
OKLaboklab(42.31% 0.0682 -0.1588)
OKLCHoklch(42.31% 0.173 293.3)
XYZxyz(11.2855, 6.5843, 34.3876)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FA1 #7AA12F
analogous
#2F41A1 #562FA1 #8F2FA1
triadic
#562FA1 #A1562F #2FA156
tetradic
#562FA1 #A12F41 #7AA12F #2FA18F
square
#562FA1 #A12F41 #7AA12F #2FA18F
split-complementary
#562FA1 #A18F2F #41A12F
monochromatic
#231342 #3D2172 #562FA1 #7245C9 #9674D6

Accessibility & contrast

On white

9.06
#562FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#562FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FA1
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FA1#FFFFFF#000000##FFFFFF
##562FA11.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#404C64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562fa1;
/* rgb */ color: rgb(86, 47, 161);
/* oklch */ color: oklch(42.3% 0.173 293.3);
Tailwind
colors: {
  custom: {
    50: '#8d6bbe',
    500: '#562fa1',
    950: '#000000',
  },
}
SCSS
$custom: #562fa1;
$custom-light: #8d6bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#562fa1",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 260.526,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42313,
    "c": 0.17282,
    "h": 293.3
  },
  "luminance": 0.06585
}

Semantic roles & 50–950 ramp

primary
#562FA1
secondary
#A3BE6E
accent
#DE4AAB
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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