#816BB2#816BB2

#816BB2 is a mid, moderate violet. Relative luminance 0.184; OKLCH L 57.8% C 0.109 H 297.1°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#816BB2
RGBrgb(129, 107, 178)
HSLhsl(259, 32%, 56%)
HSVhsv(259, 40%, 70%)
CMYKcmyk(27.5%, 39.9%, 0%, 30.2%)
CIE-LABlab(49.97, 24.22, -34.66)
CIE-LCHlch(49.97, 42.28, 304.95°)
OKLaboklab(57.84% 0.0496 -0.0967)
OKLCHoklch(57.84% 0.109 297.1)
XYZxyz(22.3449, 18.3967, 44.4845)
Luminance0.1840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816BB2 #9CB26B
analogous
#6B78B2 #816BB2 #A56BB2
triadic
#816BB2 #B2816B #6BB281
tetradic
#816BB2 #B26B78 #9CB26B #6BB2A5
square
#816BB2 #B26B78 #9CB26B #6BB2A5
split-complementary
#816BB2 #B2A56B #78B26B
monochromatic
#48386B #624D93 #816BB2 #A393C7 #C6BCDC

Accessibility & contrast

On white

4.49
#816BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#816BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #816BB2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816BB2#FFFFFF#000000##000000
##816BB21.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5877B5
Deuteranopia (green-blind)
#5B76B0
Tritanopia (blue-blind)
#777786
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #816bb2;
/* rgb */ color: rgb(129, 107, 178);
/* oklch */ color: oklch(57.8% 0.109 297.1);
Tailwind
colors: {
  custom: {
    50: '#a795c9',
    500: '#816bb2',
    950: '#000000',
  },
}
SCSS
$custom: #816bb2;
$custom-light: #a795c9;
$custom-dark: #000000;
JSON
{
  "hex": "#816bb2",
  "rgb": {
    "r": 129,
    "g": 107,
    "b": 178
  },
  "hsl": {
    "h": 258.592,
    "s": 31.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57837,
    "c": 0.10868,
    "h": 297.1
  },
  "luminance": 0.18397
}

Semantic roles & 50–950 ramp

primary
#816BB2
secondary
#C2CBAE
accent
#C860A8
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #816BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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