#8128B2#8128B2

#8128B2 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.206 H 310.0°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#8128B2
RGBrgb(129, 40, 178)
HSLhsl(279, 63%, 43%)
HSVhsv(279, 78%, 70%)
CMYKcmyk(27.5%, 77.5%, 0%, 30.2%)
CIE-LABlab(36.74, 58.98, -55.78)
CIE-LCHlch(36.74, 81.18, 316.59°)
OKLaboklab(48.13% 0.1327 -0.1582)
OKLCHoklch(48.13% 0.207 310)
XYZxyz(17.8463, 9.3994, 42.9850)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8128B2 #59B228
analogous
#3C28B2 #8128B2 #B2289E
triadic
#8128B2 #B28128 #28B281
tetradic
#8128B2 #B23C28 #59B228 #289EB2
square
#8128B2 #B23C28 #59B228 #289EB2
split-complementary
#8128B2 #9EB228 #28B23C
monochromatic
#39124E #5D1D80 #8128B2 #A143D5 #BA75E0

Accessibility & contrast

On white

7.29
#8128B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8128B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8128B2
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8128B2#FFFFFF#000000##FFFFFF
##8128B21.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#7A4A6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8128b2;
/* rgb */ color: rgb(129, 40, 178);
/* oklch */ color: oklch(48.1% 0.206 310.0);
Tailwind
colors: {
  custom: {
    50: '#ab6cca',
    500: '#8128b2',
    950: '#000000',
  },
}
SCSS
$custom: #8128b2;
$custom-light: #ab6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8128b2",
  "rgb": {
    "r": 129,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 278.696,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48126,
    "c": 0.2065,
    "h": 310
  },
  "luminance": 0.09399
}

Semantic roles & 50–950 ramp

primary
#8128B2
secondary
#8EC76F
accent
#E6417C
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8128B2

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

Preview Lab → · Contrast checker → · Palette generator →

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