#8161D3#8161D3

#8161D3 is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.0% C 0.169 H 293.4°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#8161D3
RGBrgb(129, 97, 211)
HSLhsl(257, 56%, 60%)
HSVhsv(257, 54%, 83%)
CMYKcmyk(38.9%, 54%, 0%, 17.3%)
CIE-LABlab(49.40, 38.82, -54.56)
CIE-LCHlch(49.40, 66.97, 305.43°)
OKLaboklab(57.99% 0.0669 -0.1548)
OKLCHoklch(57.99% 0.169 293.4)
XYZxyz(25.0827, 17.9191, 63.7526)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8161D3 #B3D361
analogous
#617AD3 #8161D3 #BA61D3
triadic
#8161D3 #D38161 #61D381
tetradic
#8161D3 #D3617A #B3D361 #61D3BA
square
#8161D3 #D3617A #B3D361 #61D3BA
split-complementary
#8161D3 #D3BA61 #7AD361
monochromatic
#462891 #5D36C1 #8161D3 #A791E0 #CDC1EE

Accessibility & contrast

On white

4.58
#8161D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#8161D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8161D3
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8161D3#FFFFFF#000000##000000
##8161D31.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D77D7
Deuteranopia (green-blind)
#3573D0
Tritanopia (blue-blind)
#6C7991
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8161d3;
/* rgb */ color: rgb(129, 97, 211);
/* oklch */ color: oklch(58.0% 0.169 293.4);
Tailwind
colors: {
  custom: {
    50: '#aa8fe1',
    500: '#8161d3',
    950: '#000000',
  },
}
SCSS
$custom: #8161d3;
$custom-light: #aa8fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#8161d3",
  "rgb": {
    "r": 129,
    "g": 97,
    "b": 211
  },
  "hsl": {
    "h": 256.842,
    "s": 56.436,
    "l": 60.392
  },
  "oklch": {
    "l": 0.57988,
    "c": 0.16869,
    "h": 293.4
  },
  "luminance": 0.1792
}

Semantic roles & 50–950 ramp

primary
#8161D3
secondary
#D1DEB2
accent
#C42296
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #8161D3

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

Preview Lab → · Contrast checker → · Palette generator →

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