#816CD5#816CD5

#816CD5 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.0% C 0.155 H 290.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#816CD5
RGBrgb(129, 108, 213)
HSLhsl(252, 56%, 63%)
HSVhsv(252, 49%, 84%)
CMYKcmyk(39.4%, 49.3%, 0%, 16.5%)
CIE-LABlab(52.06, 32.97, -51.44)
CIE-LCHlch(52.06, 61.10, 302.66°)
OKLaboklab(60.01% 0.0534 -0.1457)
OKLCHoklch(60.01% 0.155 290.1)
XYZxyz(26.4228, 20.1956, 65.4439)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816CD5 #C0D56C
analogous
#6C8BD5 #816CD5 #B56CD5
triadic
#816CD5 #D5816C #6CD581
tetradic
#816CD5 #D56C8B #C0D56C #6CD5B5
square
#816CD5 #D56C8B #C0D56C #6CD5B5
split-complementary
#816CD5 #D5B56C #8BD56C
monochromatic
#422C9A #583CC7 #816CD5 #AA9CE3 #D3CBF0

Accessibility & contrast

On white

4.17
#816CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#816CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #816CD5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816CD5#FFFFFF#000000##000000
##816CD51.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#427ED9
Deuteranopia (green-blind)
#447AD3
Tritanopia (blue-blind)
#6A8196
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #816cd5;
/* rgb */ color: rgb(129, 108, 213);
/* oklch */ color: oklch(60.0% 0.155 290.1);
Tailwind
colors: {
  custom: {
    50: '#aa96e2',
    500: '#816cd5',
    950: '#000000',
  },
}
SCSS
$custom: #816cd5;
$custom-light: #aa96e2;
$custom-dark: #000000;
JSON
{
  "hex": "#816cd5",
  "rgb": {
    "r": 129,
    "g": 108,
    "b": 213
  },
  "hsl": {
    "h": 252,
    "s": 55.556,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60007,
    "c": 0.15514,
    "h": 290.1
  },
  "luminance": 0.20196
}

Semantic roles & 50–950 ramp

primary
#816CD5
secondary
#DAE1BB
accent
#C322A3
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #816CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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