#816CD9#816CD9

#816CD9 is a mid, vivid violet. Relative luminance 0.204; OKLCH L 60.3% C 0.160 H 289.6°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#816CD9
RGBrgb(129, 108, 217)
HSLhsl(252, 59%, 64%)
HSVhsv(252, 50%, 85%)
CMYKcmyk(40.6%, 50.2%, 0%, 14.9%)
CIE-LABlab(52.29, 34.08, -53.34)
CIE-LCHlch(52.29, 63.30, 302.58°)
OKLaboklab(60.25% 0.0537 -0.1512)
OKLCHoklch(60.25% 0.16 289.6)
XYZxyz(26.9368, 20.4012, 68.1507)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816CD9 #C4D96C
analogous
#6C8DD9 #816CD9 #B76CD9
triadic
#816CD9 #D9816C #6CD981
tetradic
#816CD9 #D96C8D #C4D96C #6CD9B7
square
#816CD9 #D96C8D #C4D96C #6CD9B7
split-complementary
#816CD9 #D9B76C #8DD96C
monochromatic
#412AA1 #573BCC #816CD9 #AB9DE6 #D4CDF2

Accessibility & contrast

On white

4.13
#816CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#816CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #816CD9
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816CD9#FFFFFF#000000##000000
##816CD91.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7FDD
Deuteranopia (green-blind)
#407AD7
Tritanopia (blue-blind)
#698298
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #816cd9;
/* rgb */ color: rgb(129, 108, 217);
/* oklch */ color: oklch(60.3% 0.160 289.6);
Tailwind
colors: {
  custom: {
    50: '#aa96e5',
    500: '#816cd9',
    950: '#000000',
  },
}
SCSS
$custom: #816cd9;
$custom-light: #aa96e5;
$custom-dark: #000000;
JSON
{
  "hex": "#816cd9",
  "rgb": {
    "r": 129,
    "g": 108,
    "b": 217
  },
  "hsl": {
    "h": 251.56,
    "s": 58.919,
    "l": 63.725
  },
  "oklch": {
    "l": 0.60253,
    "c": 0.16049,
    "h": 289.6
  },
  "luminance": 0.20402
}

Semantic roles & 50–950 ramp

primary
#816CD9
secondary
#DCE4BD
accent
#C71FA6
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #816CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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