#8138C5#8138C5

#8138C5 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.2% C 0.208 H 303.4°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8138C5
RGBrgb(129, 56, 197)
HSLhsl(271, 56%, 50%)
HSVhsv(271, 72%, 77%)
CMYKcmyk(34.5%, 71.6%, 0%, 22.7%)
CIE-LABlab(40.45, 56.73, -60.93)
CIE-LCHlch(40.45, 83.25, 312.95°)
OKLaboklab(51.19% 0.1142 -0.1735)
OKLCHoklch(51.19% 0.208 303.4)
XYZxyz(20.5431, 11.5267, 53.9551)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8138C5 #7CC538
analogous
#3B38C5 #8138C5 #C538C2
triadic
#8138C5 #C58138 #38C581
tetradic
#8138C5 #C53B38 #7CC538 #38C2C5
square
#8138C5 #C53B38 #7CC538 #38C2C5
split-complementary
#8138C5 #C2C538 #38C53B
monochromatic
#431D66 #622A95 #8138C5 #9F67D4 #BD96E1

Accessibility & contrast

On white

6.35
#8138C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8138C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8138C5
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8138C5#FFFFFF#000000##FFFFFF
##8138C51.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#735A7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8138c5;
/* rgb */ color: rgb(129, 56, 197);
/* oklch */ color: oklch(51.2% 0.208 303.4);
Tailwind
colors: {
  custom: {
    50: '#ab75d7',
    500: '#8138c5',
    950: '#000000',
  },
}
SCSS
$custom: #8138c5;
$custom-light: #ab75d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8138c5",
  "rgb": {
    "r": 129,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 271.064,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51194,
    "c": 0.2077,
    "h": 303.4
  },
  "luminance": 0.11527
}

Semantic roles & 50–950 ramp

primary
#8138C5
secondary
#ABCD8C
accent
#DF4991
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8138C5

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

Preview Lab → · Contrast checker → · Palette generator →

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