#8138BA#8138BA

#8138BA is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.4% C 0.196 H 306.2°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#8138BA
RGBrgb(129, 56, 186)
HSLhsl(274, 54%, 47%)
HSVhsv(274, 70%, 73%)
CMYKcmyk(30.6%, 69.9%, 0%, 27.1%)
CIE-LABlab(39.65, 54.16, -55.80)
CIE-LCHlch(39.65, 77.76, 314.15°)
OKLaboklab(50.37% 0.116 -0.1584)
OKLCHoklch(50.37% 0.196 306.2)
XYZxyz(19.3284, 11.0408, 47.5577)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8138BA #71BA38
analogous
#4038BA #8138BA #BA38B2
triadic
#8138BA #BA8138 #38BA81
tetradic
#8138BA #BA4038 #71BA38 #38B2BA
square
#8138BA #BA4038 #71BA38 #38B2BA
split-complementary
#8138BA #B2BA38 #38BA40
monochromatic
#401C5C #602A8B #8138BA #9E60CF #BB8FDD

Accessibility & contrast

On white

6.55
#8138BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8138BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8138BA
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8138BA#FFFFFF#000000##FFFFFF
##8138BA1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#095EB7
Tritanopia (blue-blind)
#775675
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8138ba;
/* rgb */ color: rgb(129, 56, 186);
/* oklch */ color: oklch(50.4% 0.196 306.2);
Tailwind
colors: {
  custom: {
    50: '#aa74d0',
    500: '#8138ba',
    950: '#000000',
  },
}
SCSS
$custom: #8138ba;
$custom-light: #aa74d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8138ba",
  "rgb": {
    "r": 129,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 273.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50369,
    "c": 0.1963,
    "h": 306.2
  },
  "luminance": 0.11041
}

Semantic roles & 50–950 ramp

primary
#8138BA
secondary
#A3C886
accent
#DD4B8B
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8138BA

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

Preview Lab → · Contrast checker → · Palette generator →

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