#816CD2#816CD2

#816CD2 is a mid, vivid violet. Relative luminance 0.200; OKLCH L 59.8% C 0.151 H 290.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#816CD2
RGBrgb(129, 108, 210)
HSLhsl(252, 53%, 62%)
HSVhsv(252, 49%, 82%)
CMYKcmyk(38.6%, 48.6%, 0%, 17.6%)
CIE-LABlab(51.89, 32.14, -50.01)
CIE-LCHlch(51.89, 59.45, 302.73°)
OKLaboklab(59.82% 0.0531 -0.1415)
OKLCHoklch(59.82% 0.151 290.6)
XYZxyz(26.0455, 20.0447, 63.4570)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816CD2 #BDD26C
analogous
#6C8AD2 #816CD2 #B46CD2
triadic
#816CD2 #D2816C #6CD281
tetradic
#816CD2 #D26C8A #BDD26C #6CD2B4
square
#816CD2 #D26C8A #BDD26C #6CD2B4
split-complementary
#816CD2 #D2B46C #8AD26C
monochromatic
#432E96 #593DC4 #816CD2 #A99BE0 #D1CAEF

Accessibility & contrast

On white

4.19
#816CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#816CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #816CD2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816CD2#FFFFFF#000000##000000
##816CD21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#457ED6
Deuteranopia (green-blind)
#4779D0
Tritanopia (blue-blind)
#6C8095
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #816cd2;
/* rgb */ color: rgb(129, 108, 210);
/* oklch */ color: oklch(59.8% 0.151 290.6);
Tailwind
colors: {
  custom: {
    50: '#a996e0',
    500: '#816cd2',
    950: '#000000',
  },
}
SCSS
$custom: #816cd2;
$custom-light: #a996e0;
$custom-dark: #000000;
JSON
{
  "hex": "#816cd2",
  "rgb": {
    "r": 129,
    "g": 108,
    "b": 210
  },
  "hsl": {
    "h": 252.353,
    "s": 53.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59824,
    "c": 0.1511,
    "h": 290.6
  },
  "luminance": 0.20045
}

Semantic roles & 50–950 ramp

primary
#816CD2
secondary
#D8E0BA
accent
#C125A1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #816CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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