#8128C6#8128C6

#8128C6 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.7% C 0.225 H 304.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8128C6
RGBrgb(129, 40, 198)
HSLhsl(274, 66%, 47%)
HSVhsv(274, 80%, 78%)
CMYKcmyk(34.8%, 79.8%, 0%, 22.4%)
CIE-LABlab(38.31, 63.32, -65.01)
CIE-LCHlch(38.31, 90.75, 314.25°)
OKLaboklab(49.71% 0.1279 -0.1853)
OKLCHoklch(49.71% 0.225 304.6)
XYZxyz(20.0028, 10.2620, 54.3421)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8128C6 #6DC628
analogous
#3228C6 #8128C6 #C628BC
triadic
#8128C6 #C68128 #28C681
tetradic
#8128C6 #C63228 #6DC628 #28BCC6
square
#8128C6 #C63228 #6DC628 #28BCC6
split-complementary
#8128C6 #BCC628 #28C632
monochromatic
#3F1360 #601E93 #8128C6 #9E50DC #BA83E6

Accessibility & contrast

On white

6.88
#8128C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8128C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8128C6
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8128C6#FFFFFF#000000##FFFFFF
##8128C61.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CA
Deuteranopia (green-blind)
#005AC3
Tritanopia (blue-blind)
#735378
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8128c6;
/* rgb */ color: rgb(129, 40, 198);
/* oklch */ color: oklch(49.7% 0.225 304.6);
Tailwind
colors: {
  custom: {
    50: '#ac6dd8',
    500: '#8128c6',
    950: '#000000',
  },
}
SCSS
$custom: #8128c6;
$custom-light: #ac6dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8128c6",
  "rgb": {
    "r": 129,
    "g": 40,
    "b": 198
  },
  "hsl": {
    "h": 273.797,
    "s": 66.387,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4971,
    "c": 0.22516,
    "h": 304.6
  },
  "luminance": 0.10262
}

Semantic roles & 50–950 ramp

primary
#8128C6
secondary
#A0CF7B
accent
#E93E89
background
#FBF6FD
surface
#F6ECFB
border
#D0C7D4
text
#110815
muted
#807A83

Preview Lab

Preview with #8128C6

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

Preview Lab → · Contrast checker → · Palette generator →

#8128C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva