#8161DB#8161DB

#8161DB is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.5% C 0.179 H 292.0°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8161DB
RGBrgb(129, 97, 219)
HSLhsl(256, 63%, 62%)
HSVhsv(256, 56%, 86%)
CMYKcmyk(41.1%, 55.7%, 0%, 14.1%)
CIE-LABlab(49.89, 41.01, -58.32)
CIE-LCHlch(49.89, 71.29, 305.12°)
OKLaboklab(58.51% 0.0671 -0.1659)
OKLCHoklch(58.51% 0.179 292)
XYZxyz(26.1107, 18.3302, 69.1665)
Luminance0.1833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8161DB #BBDB61
analogous
#617EDB #8161DB #BE61DB
triadic
#8161DB #DB8161 #61DB81
tetradic
#8161DB #DB617E #BBDB61 #61DBBE
square
#8161DB #DB617E #BBDB61 #61DBBE
split-complementary
#8161DB #DBBE61 #7EDB61
monochromatic
#44249E #592FD0 #8161DB #A993E6 #D0C5F2

Accessibility & contrast

On white

4.50
#8161DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#8161DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8161DB
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8161DB#FFFFFF#000000##000000
##8161DB1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2078DF
Deuteranopia (green-blind)
#2974D8
Tritanopia (blue-blind)
#687B95
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8161db;
/* rgb */ color: rgb(129, 97, 219);
/* oklch */ color: oklch(58.5% 0.179 292.0);
Tailwind
colors: {
  custom: {
    50: '#ab8fe7',
    500: '#8161db',
    950: '#000000',
  },
}
SCSS
$custom: #8161db;
$custom-light: #ab8fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#8161db",
  "rgb": {
    "r": 129,
    "g": 97,
    "b": 219
  },
  "hsl": {
    "h": 255.738,
    "s": 62.887,
    "l": 61.961
  },
  "oklch": {
    "l": 0.58514,
    "c": 0.17893,
    "h": 292
  },
  "luminance": 0.18331
}

Semantic roles & 50–950 ramp

primary
#8161DB
secondary
#D7E2B5
accent
#CB1B9D
background
#FAF8FE
surface
#F5F0FC
border
#CFCBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #8161DB

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

Preview Lab → · Contrast checker → · Palette generator →

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