#8138C7#8138C7

#8138C7 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.3% C 0.210 H 302.9°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8138C7
RGBrgb(129, 56, 199)
HSLhsl(271, 56%, 50%)
HSVhsv(271, 72%, 78%)
CMYKcmyk(35.2%, 71.9%, 0%, 22%)
CIE-LABlab(40.60, 57.20, -61.85)
CIE-LCHlch(40.60, 84.25, 312.76°)
OKLaboklab(51.35% 0.1139 -0.1762)
OKLCHoklch(51.35% 0.21 302.9)
XYZxyz(20.7738, 11.6190, 55.1700)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8138C7 #7EC738
analogous
#3938C7 #8138C7 #C738C6
triadic
#8138C7 #C78138 #38C781
tetradic
#8138C7 #C73938 #7EC738 #38C6C7
square
#8138C7 #C73938 #7EC738 #38C6C7
split-complementary
#8138C7 #C6C738 #38C739
monochromatic
#431D67 #622B97 #8138C7 #9F68D4 #BD98E2

Accessibility & contrast

On white

6.32
#8138C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8138C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8138C7
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8138C7#FFFFFF#000000##FFFFFF
##8138C71.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#005FC4
Tritanopia (blue-blind)
#735B7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8138c7;
/* rgb */ color: rgb(129, 56, 199);
/* oklch */ color: oklch(51.3% 0.210 302.9);
Tailwind
colors: {
  custom: {
    50: '#ab75d9',
    500: '#8138c7',
    950: '#000000',
  },
}
SCSS
$custom: #8138c7;
$custom-light: #ab75d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8138c7",
  "rgb": {
    "r": 129,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 270.629,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.51348,
    "c": 0.20977,
    "h": 302.9
  },
  "luminance": 0.11619
}

Semantic roles & 50–950 ramp

primary
#8138C7
secondary
#ADCD8D
accent
#DF4892
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8138C7

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

Preview Lab → · Contrast checker → · Palette generator →

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