#8161E2#8161E2

#8161E2 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.0% C 0.188 H 290.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8161E2
RGBrgb(129, 97, 226)
HSLhsl(255, 69%, 63%)
HSVhsv(255, 57%, 89%)
CMYKcmyk(42.9%, 57.1%, 0%, 11.4%)
CIE-LABlab(50.34, 42.94, -61.55)
CIE-LCHlch(50.34, 75.05, 304.90°)
OKLaboklab(58.99% 0.0671 -0.1754)
OKLCHoklch(58.99% 0.188 290.9)
XYZxyz(27.0516, 18.7066, 74.1222)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8161E2 #C2E261
analogous
#6181E2 #8161E2 #C261E2
triadic
#8161E2 #E28161 #61E281
tetradic
#8161E2 #E26181 #C2E261 #61E2C2
square
#8161E2 #E26181 #C2E261 #61E2C2
split-complementary
#8161E2 #E2C261 #81E261
monochromatic
#411FA9 #582DD9 #8161E2 #AA95EB #D3C8F5

Accessibility & contrast

On white

4.43
#8161E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#8161E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8161E2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8161E2#FFFFFF#000000##000000
##8161E21.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B7AE6
Deuteranopia (green-blind)
#1A75DF
Tritanopia (blue-blind)
#657D98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8161e2;
/* rgb */ color: rgb(129, 97, 226);
/* oklch */ color: oklch(59.0% 0.188 290.9);
Tailwind
colors: {
  custom: {
    50: '#ab8fec',
    500: '#8161e2',
    950: '#000000',
  },
}
SCSS
$custom: #8161e2;
$custom-light: #ab8fec;
$custom-dark: #000000;
JSON
{
  "hex": "#8161e2",
  "rgb": {
    "r": 129,
    "g": 97,
    "b": 226
  },
  "hsl": {
    "h": 254.884,
    "s": 68.984,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58987,
    "c": 0.1878,
    "h": 290.9
  },
  "luminance": 0.18708
}

Semantic roles & 50–950 ramp

primary
#8161E2
secondary
#DBE6B8
accent
#D115A2
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8161E2

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

Preview Lab → · Contrast checker → · Palette generator →

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