#8138AC#8138AC

#8138AC is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.4% C 0.182 H 310.3°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8138AC
RGBrgb(129, 56, 172)
HSLhsl(278, 51%, 45%)
HSVhsv(278, 67%, 67%)
CMYKcmyk(25%, 67.4%, 0%, 32.5%)
CIE-LABlab(38.68, 50.97, -49.08)
CIE-LCHlch(38.68, 70.76, 316.08°)
OKLaboklab(49.37% 0.1176 -0.1386)
OKLCHoklch(49.37% 0.182 310.3)
XYZxyz(17.9124, 10.4744, 40.0999)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8138AC #63AC38
analogous
#4738AC #8138AC #AC389D
triadic
#8138AC #AC8138 #38AC81
tetradic
#8138AC #AC4738 #63AC38 #389DAC
square
#8138AC #AC4738 #63AC38 #389DAC
split-complementary
#8138AC #9DAC38 #38AC47
monochromatic
#3C1A50 #5E297E #8138AC #9F58C9 #BA87D8

Accessibility & contrast

On white

6.79
#8138AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8138AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8138AC
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8138AC#FFFFFF#000000##FFFFFF
##8138AC1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#275CA9
Tritanopia (blue-blind)
#7B506D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8138ac;
/* rgb */ color: rgb(129, 56, 172);
/* oklch */ color: oklch(49.4% 0.182 310.3);
Tailwind
colors: {
  custom: {
    50: '#a974c5',
    500: '#8138ac',
    950: '#000000',
  },
}
SCSS
$custom: #8138ac;
$custom-light: #a974c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8138ac",
  "rgb": {
    "r": 129,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 277.759,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49369,
    "c": 0.18177,
    "h": 310.3
  },
  "luminance": 0.10474
}

Semantic roles & 50–950 ramp

primary
#8138AC
secondary
#97C27E
accent
#DA4D82
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #8138AC

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

Preview Lab → · Contrast checker → · Palette generator →

#8138AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva