#8161CC#8161CC

#8161CC is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.5% C 0.160 H 294.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8161CC
RGBrgb(129, 97, 204)
HSLhsl(258, 51%, 59%)
HSVhsv(258, 52%, 80%)
CMYKcmyk(36.8%, 52.5%, 0%, 20%)
CIE-LABlab(48.98, 36.94, -51.24)
CIE-LCHlch(48.98, 63.16, 305.79°)
OKLaboklab(57.54% 0.0666 -0.1451)
OKLCHoklch(57.54% 0.16 294.7)
XYZxyz(24.2242, 17.5757, 59.2312)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8161CC #ACCC61
analogous
#6177CC #8161CC #B761CC
triadic
#8161CC #CC8161 #61CC81
tetradic
#8161CC #CC6177 #ACCC61 #61CCB7
square
#8161CC #CC6177 #ACCC61 #61CCB7
split-complementary
#8161CC #CCB761 #77CC61
monochromatic
#472C87 #5F3BB5 #8161CC #A68FDB #CBBEEA

Accessibility & contrast

On white

4.65
#8161CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8161CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8161CC
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8161CC#FFFFFF#000000##FFFFFF
##8161CC1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3575D0
Deuteranopia (green-blind)
#3C73CA
Tritanopia (blue-blind)
#6F778D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8161cc;
/* rgb */ color: rgb(129, 97, 204);
/* oklch */ color: oklch(57.5% 0.160 294.7);
Tailwind
colors: {
  custom: {
    50: '#a98fdc',
    500: '#8161cc',
    950: '#000000',
  },
}
SCSS
$custom: #8161cc;
$custom-light: #a98fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8161cc",
  "rgb": {
    "r": 129,
    "g": 97,
    "b": 204
  },
  "hsl": {
    "h": 257.944,
    "s": 51.196,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5754,
    "c": 0.15962,
    "h": 294.7
  },
  "luminance": 0.17576
}

Semantic roles & 50–950 ramp

primary
#8161CC
secondary
#CDD9AF
accent
#DB4DB0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #8161CC

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

Preview Lab → · Contrast checker → · Palette generator →

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