#8117B4#8117B4

#8117B4 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 47.1% C 0.222 H 310.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#8117B4
RGBrgb(129, 23, 180)
HSLhsl(281, 77%, 40%)
HSVhsv(281, 87%, 71%)
CMYKcmyk(28.3%, 87.2%, 0%, 29.4%)
CIE-LABlab(35.15, 64.48, -59.55)
CIE-LCHlch(35.15, 87.77, 317.27°)
OKLaboklab(47.07% 0.1441 -0.1692)
OKLCHoklch(47.07% 0.222 310.4)
XYZxyz(17.5962, 8.5756, 43.8995)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8117B4 #4AB417
analogous
#3317B4 #8117B4 #B41798
triadic
#8117B4 #B48117 #17B481
tetradic
#8117B4 #B43317 #4AB417 #1798B4
square
#8117B4 #B43317 #4AB417 #1798B4
split-complementary
#8117B4 #98B417 #17B433
monochromatic
#330947 #5A107E #8117B4 #A525E3 #BC5BEA

Accessibility & contrast

On white

7.73
#8117B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8117B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8117B4
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8117B4#FFFFFF#000000##FFFFFF
##8117B41.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#7A446B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8117b4;
/* rgb */ color: rgb(129, 23, 180);
/* oklch */ color: oklch(47.1% 0.222 310.4);
Tailwind
colors: {
  custom: {
    50: '#ab66cb',
    500: '#8117b4',
    950: '#000000',
  },
}
SCSS
$custom: #8117b4;
$custom-light: #ab66cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8117b4",
  "rgb": {
    "r": 129,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 280.51,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47067,
    "c": 0.22225,
    "h": 310.4
  },
  "luminance": 0.08575
}

Semantic roles & 50–950 ramp

primary
#8117B4
secondary
#7FCE59
accent
#F43472
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8117B4

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

Preview Lab → · Contrast checker → · Palette generator →

#8117B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva