#816CD7#816CD7

#816CD7 is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.1% C 0.158 H 289.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#816CD7
RGBrgb(129, 108, 215)
HSLhsl(252, 57%, 63%)
HSVhsv(252, 50%, 84%)
CMYKcmyk(40%, 49.8%, 0%, 15.7%)
CIE-LABlab(52.17, 33.53, -52.40)
CIE-LCHlch(52.17, 62.20, 302.62°)
OKLaboklab(60.13% 0.0536 -0.1484)
OKLCHoklch(60.13% 0.158 289.8)
XYZxyz(26.6782, 20.2977, 66.7890)
Luminance0.2030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816CD7 #C2D76C
analogous
#6C8CD7 #816CD7 #B66CD7
triadic
#816CD7 #D7816C #6CD781
tetradic
#816CD7 #D76C8C #C2D76C #6CD7B6
square
#816CD7 #D76C8C #C2D76C #6CD7B6
split-complementary
#816CD7 #D7B66C #8CD76C
monochromatic
#412B9E #583CCA #816CD7 #AA9CE4 #D3CCF1

Accessibility & contrast

On white

4.15
#816CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#816CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #816CD7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816CD7#FFFFFF#000000##000000
##816CD71.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#407FDB
Deuteranopia (green-blind)
#427AD5
Tritanopia (blue-blind)
#698297
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #816cd7;
/* rgb */ color: rgb(129, 108, 215);
/* oklch */ color: oklch(60.1% 0.158 289.8);
Tailwind
colors: {
  custom: {
    50: '#aa96e4',
    500: '#816cd7',
    950: '#000000',
  },
}
SCSS
$custom: #816cd7;
$custom-light: #aa96e4;
$custom-dark: #000000;
JSON
{
  "hex": "#816cd7",
  "rgb": {
    "r": 129,
    "g": 108,
    "b": 215
  },
  "hsl": {
    "h": 251.776,
    "s": 57.219,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60129,
    "c": 0.15781,
    "h": 289.8
  },
  "luminance": 0.20299
}

Semantic roles & 50–950 ramp

primary
#816CD7
secondary
#DBE2BC
accent
#C521A5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #816CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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