#8142B2#8142B2

#8142B2 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.174 H 307.2°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8142B2
RGBrgb(129, 66, 178)
HSLhsl(274, 46%, 48%)
HSVhsv(274, 63%, 70%)
CMYKcmyk(27.5%, 62.9%, 0%, 30.2%)
CIE-LABlab(40.86, 47.45, -49.13)
CIE-LCHlch(40.86, 68.30, 314.00°)
OKLaboklab(51.07% 0.1054 -0.1388)
OKLCHoklch(51.07% 0.174 307.2)
XYZxyz(19.0357, 11.7781, 43.3814)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8142B2 #73B242
analogous
#4942B2 #8142B2 #B242AB
triadic
#8142B2 #B28142 #42B281
tetradic
#8142B2 #B24942 #73B242 #42ABB2
square
#8142B2 #B24942 #73B242 #42ABB2
split-complementary
#8142B2 #ABB242 #42B249
monochromatic
#402159 #613185 #8142B2 #9E6AC8 #BB96D8

Accessibility & contrast

On white

6.26
#8142B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8142B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8142B2
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8142B2#FFFFFF#000000##FFFFFF
##8142B21.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#2D61AF
Tritanopia (blue-blind)
#795974
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8142b2;
/* rgb */ color: rgb(129, 66, 178);
/* oklch */ color: oklch(51.1% 0.174 307.2);
Tailwind
colors: {
  custom: {
    50: '#a97aca',
    500: '#8142b2',
    950: '#000000',
  },
}
SCSS
$custom: #8142b2;
$custom-light: #a97aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8142b2",
  "rgb": {
    "r": 129,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 273.75,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51067,
    "c": 0.17429,
    "h": 307.2
  },
  "luminance": 0.11778
}

Semantic roles & 50–950 ramp

primary
#8142B2
secondary
#A4C48C
accent
#D6528C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8142B2

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

Preview Lab → · Contrast checker → · Palette generator →

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