#8142BB#8142BB

#8142BB is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.7% C 0.184 H 304.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8142BB
RGBrgb(129, 66, 187)
HSLhsl(271, 48%, 50%)
HSVhsv(271, 65%, 73%)
CMYKcmyk(31%, 64.7%, 0%, 26.7%)
CIE-LABlab(41.46, 49.59, -53.47)
CIE-LCHlch(41.46, 72.92, 312.84°)
OKLaboklab(51.69% 0.1048 -0.1516)
OKLCHoklch(51.69% 0.184 304.7)
XYZxyz(19.9691, 12.1515, 48.2975)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8142BB #7CBB42
analogous
#4542BB #8142BB #BB42B8
triadic
#8142BB #BB8142 #42BB81
tetradic
#8142BB #BB4542 #7CBB42 #42B8BB
square
#8142BB #BB4542 #7CBB42 #42B8BB
split-complementary
#8142BB #B8BB42 #42BB45
monochromatic
#432261 #62328E #8142BB #9F6ECC #BD9CDC

Accessibility & contrast

On white

6.12
#8142BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8142BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8142BB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8142BB#FFFFFF#000000##FFFFFF
##8142BB1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#2062B8
Tritanopia (blue-blind)
#765C79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8142bb;
/* rgb */ color: rgb(129, 66, 187);
/* oklch */ color: oklch(51.7% 0.184 304.7);
Tailwind
colors: {
  custom: {
    50: '#aa7ad0',
    500: '#8142bb',
    950: '#000000',
  },
}
SCSS
$custom: #8142bb;
$custom-light: #aa7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8142bb",
  "rgb": {
    "r": 129,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 271.24,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51686,
    "c": 0.18429,
    "h": 304.7
  },
  "luminance": 0.12151
}

Semantic roles & 50–950 ramp

primary
#8142BB
secondary
#ABC891
accent
#D75091
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8142BB

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

Preview Lab → · Contrast checker → · Palette generator →

#8142BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva