#8161A2#8161A2

#8161A2 is a mid, moderate violet. Relative luminance 0.158; OKLCH L 55.1% C 0.104 H 305.9°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8161A2
RGBrgb(129, 97, 162)
HSLhsl(270, 26%, 51%)
HSVhsv(270, 40%, 64%)
CMYKcmyk(20.4%, 40.1%, 0%, 36.5%)
CIE-LABlab(46.74, 26.19, -30.35)
CIE-LCHlch(46.74, 40.09, 310.79°)
OKLaboklab(55.14% 0.061 -0.0842)
OKLCHoklch(55.14% 0.104 305.9)
XYZxyz(19.8482, 15.8253, 36.1844)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8161A2 #82A261
analogous
#6162A2 #8161A2 #A161A2
triadic
#8161A2 #A28161 #61A281
tetradic
#8161A2 #A26162 #82A261 #61A2A1
square
#8161A2 #A26162 #82A261 #61A2A1
split-complementary
#8161A2 #A2A161 #62A261
monochromatic
#443356 #63497D #8161A2 #A088B9 #BEAECF

Accessibility & contrast

On white

5.04
#8161A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8161A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8161A2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8161A2#FFFFFF#000000##FFFFFF
##8161A21.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526EA4
Deuteranopia (green-blind)
#5A6FA0
Tritanopia (blue-blind)
#7C6B7A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8161a2;
/* rgb */ color: rgb(129, 97, 162);
/* oklch */ color: oklch(55.1% 0.104 305.9);
Tailwind
colors: {
  custom: {
    50: '#a78ebe',
    500: '#8161a2',
    950: '#000000',
  },
}
SCSS
$custom: #8161a2;
$custom-light: #a78ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#8161a2",
  "rgb": {
    "r": 129,
    "g": 97,
    "b": 162
  },
  "hsl": {
    "h": 269.538,
    "s": 25.896,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55141,
    "c": 0.10401,
    "h": 305.9
  },
  "luminance": 0.15825
}

Semantic roles & 50–950 ramp

primary
#8161A2
secondary
#B0BEA1
accent
#C26695
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #8161A2

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

Preview Lab → · Contrast checker → · Palette generator →

#8161A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva