#816FAC#816FAC

#816FAC is a mid, moderate violet. Relative luminance 0.190; OKLCH L 58.3% C 0.094 H 297.0°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#816FAC
RGBrgb(129, 111, 172)
HSLhsl(258, 27%, 55%)
HSVhsv(258, 35%, 67%)
CMYKcmyk(25%, 35.5%, 0%, 32.5%)
CIE-LABlab(50.70, 20.32, -30.03)
CIE-LCHlch(50.70, 36.26, 304.09°)
OKLaboklab(58.3% 0.0424 -0.0834)
OKLCHoklch(58.3% 0.094 297)
XYZxyz(22.1824, 19.0144, 41.5232)
Luminance0.1902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816FAC #9AAC6F
analogous
#6F7BAC #816FAC #9F6FAC
triadic
#816FAC #AC816F #6FAC81
tetradic
#816FAC #AC6F7B #9AAC6F #6FAC9F
square
#816FAC #AC6F7B #9AAC6F #6FAC9F
split-complementary
#816FAC #AC9F6F #7BAC6F
monochromatic
#473B66 #63518D #816FAC #A396C2 #C5BDD9

Accessibility & contrast

On white

4.37
#816FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#816FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #816FAC
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816FAC#FFFFFF#000000##000000
##816FAC1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6079AE
Deuteranopia (green-blind)
#6278AA
Tritanopia (blue-blind)
#797985
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #816fac;
/* rgb */ color: rgb(129, 111, 172);
/* oklch */ color: oklch(58.3% 0.094 297.0);
Tailwind
colors: {
  custom: {
    50: '#a798c5',
    500: '#816fac',
    950: '#000000',
  },
}
SCSS
$custom: #816fac;
$custom-light: #a798c5;
$custom-dark: #000000;
JSON
{
  "hex": "#816fac",
  "rgb": {
    "r": 129,
    "g": 111,
    "b": 172
  },
  "hsl": {
    "h": 257.705,
    "s": 26.872,
    "l": 55.49
  },
  "oklch": {
    "l": 0.58301,
    "c": 0.09354,
    "h": 297
  },
  "luminance": 0.19015
}

Semantic roles & 50–950 ramp

primary
#816FAC
secondary
#C1C8AF
accent
#C365A7
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #816FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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