#8138C4#8138C4

#8138C4 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.1% C 0.207 H 303.6°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8138C4
RGBrgb(129, 56, 196)
HSLhsl(271, 56%, 49%)
HSVhsv(271, 71%, 77%)
CMYKcmyk(34.2%, 71.4%, 0%, 23.1%)
CIE-LABlab(40.38, 56.49, -60.47)
CIE-LCHlch(40.38, 82.75, 313.05°)
OKLaboklab(51.12% 0.1144 -0.1721)
OKLCHoklch(51.12% 0.207 303.6)
XYZxyz(20.4289, 11.4810, 53.3537)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8138C4 #7BC438
analogous
#3B38C4 #8138C4 #C438C1
triadic
#8138C4 #C48138 #38C481
tetradic
#8138C4 #C43B38 #7BC438 #38C1C4
square
#8138C4 #C43B38 #7BC438 #38C1C4
split-complementary
#8138C4 #C1C438 #38C43B
monochromatic
#421D65 #622A94 #8138C4 #9F66D3 #BD96E1

Accessibility & contrast

On white

6.37
#8138C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8138C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8138C4
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8138C4#FFFFFF#000000##FFFFFF
##8138C41.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#745A7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8138c4;
/* rgb */ color: rgb(129, 56, 196);
/* oklch */ color: oklch(51.1% 0.207 303.6);
Tailwind
colors: {
  custom: {
    50: '#ab75d7',
    500: '#8138c4',
    950: '#000000',
  },
}
SCSS
$custom: #8138c4;
$custom-light: #ab75d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8138c4",
  "rgb": {
    "r": 129,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 271.286,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51118,
    "c": 0.20666,
    "h": 303.6
  },
  "luminance": 0.11481
}

Semantic roles & 50–950 ramp

primary
#8138C4
secondary
#ABCC8C
accent
#DF4991
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8138C4

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

Preview Lab → · Contrast checker → · Palette generator →

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