#816CD8#816CD8

#816CD8 is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.2% C 0.159 H 289.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#816CD8
RGBrgb(129, 108, 216)
HSLhsl(252, 58%, 64%)
HSVhsv(252, 50%, 85%)
CMYKcmyk(40.3%, 50%, 0%, 15.3%)
CIE-LABlab(52.23, 33.81, -52.87)
CIE-LCHlch(52.23, 62.75, 302.60°)
OKLaboklab(60.19% 0.0536 -0.1498)
OKLCHoklch(60.19% 0.159 289.7)
XYZxyz(26.8071, 20.3493, 67.4678)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816CD8 #C3D86C
analogous
#6C8DD8 #816CD8 #B76CD8
triadic
#816CD8 #D8816C #6CD881
tetradic
#816CD8 #D86C8D #C3D86C #6CD8B7
square
#816CD8 #D86C8D #C3D86C #6CD8B7
split-complementary
#816CD8 #D8B76C #8DD86C
monochromatic
#412A9F #583CCB #816CD8 #AA9CE5 #D4CDF2

Accessibility & contrast

On white

4.14
#816CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#816CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #816CD8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816CD8#FFFFFF#000000##000000
##816CD81.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#407FDC
Deuteranopia (green-blind)
#417AD6
Tritanopia (blue-blind)
#698298
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #816cd8;
/* rgb */ color: rgb(129, 108, 216);
/* oklch */ color: oklch(60.2% 0.159 289.7);
Tailwind
colors: {
  custom: {
    50: '#aa96e5',
    500: '#816cd8',
    950: '#000000',
  },
}
SCSS
$custom: #816cd8;
$custom-light: #aa96e5;
$custom-dark: #000000;
JSON
{
  "hex": "#816cd8",
  "rgb": {
    "r": 129,
    "g": 108,
    "b": 216
  },
  "hsl": {
    "h": 251.667,
    "s": 58.065,
    "l": 63.529
  },
  "oklch": {
    "l": 0.60191,
    "c": 0.15916,
    "h": 289.7
  },
  "luminance": 0.2035
}

Semantic roles & 50–950 ramp

primary
#816CD8
secondary
#DCE3BD
accent
#C620A5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #816CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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