#816CD4#816CD4

#816CD4 is a mid, vivid violet. Relative luminance 0.201; OKLCH L 59.9% C 0.154 H 290.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#816CD4
RGBrgb(129, 108, 212)
HSLhsl(252, 55%, 63%)
HSVhsv(252, 49%, 83%)
CMYKcmyk(39.2%, 49.1%, 0%, 16.9%)
CIE-LABlab(52.00, 32.70, -50.97)
CIE-LCHlch(52.00, 60.55, 302.68°)
OKLaboklab(59.95% 0.0533 -0.1443)
OKLCHoklch(59.95% 0.154 290.3)
XYZxyz(26.2963, 20.1450, 64.7775)
Luminance0.2015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816CD4 #BFD46C
analogous
#6C8BD4 #816CD4 #B56CD4
triadic
#816CD4 #D4816C #6CD481
tetradic
#816CD4 #D46C8B #BFD46C #6CD4B5
square
#816CD4 #D46C8B #BFD46C #6CD4B5
split-complementary
#816CD4 #D4B56C #8BD46C
monochromatic
#432D99 #583DC6 #816CD4 #AA9BE2 #D2CBF0

Accessibility & contrast

On white

4.18
#816CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#816CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #816CD4
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816CD4#FFFFFF#000000##000000
##816CD41.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#437ED8
Deuteranopia (green-blind)
#457AD2
Tritanopia (blue-blind)
#6B8196
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #816cd4;
/* rgb */ color: rgb(129, 108, 212);
/* oklch */ color: oklch(59.9% 0.154 290.3);
Tailwind
colors: {
  custom: {
    50: '#aa96e2',
    500: '#816cd4',
    950: '#000000',
  },
}
SCSS
$custom: #816cd4;
$custom-light: #aa96e2;
$custom-dark: #000000;
JSON
{
  "hex": "#816cd4",
  "rgb": {
    "r": 129,
    "g": 108,
    "b": 212
  },
  "hsl": {
    "h": 252.115,
    "s": 54.737,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59946,
    "c": 0.15379,
    "h": 290.3
  },
  "luminance": 0.20146
}

Semantic roles & 50–950 ramp

primary
#816CD4
secondary
#D9E1BB
accent
#C223A2
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #816CD4

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

Preview Lab → · Contrast checker → · Palette generator →

#816CD4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva