#8138CC#8138CC

#8138CC is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.7% C 0.215 H 301.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8138CC
RGBrgb(129, 56, 204)
HSLhsl(270, 59%, 51%)
HSVhsv(270, 73%, 80%)
CMYKcmyk(36.8%, 72.5%, 0%, 20%)
CIE-LABlab(40.98, 58.38, -64.13)
CIE-LCHlch(40.98, 86.73, 312.31°)
OKLaboklab(51.74% 0.1129 -0.1829)
OKLCHoklch(51.74% 0.215 301.7)
XYZxyz(21.3639, 11.8550, 58.2777)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8138CC #83CC38
analogous
#3839CC #8138CC #CB38CC
triadic
#8138CC #CC8138 #38CC81
tetradic
#8138CC #CC3839 #83CC38 #38CCCB
square
#8138CC #CC3839 #83CC38 #38CCCB
split-complementary
#8138CC #CCCB38 #39CC38
monochromatic
#441C6E #63299E #8138CC #A069D8 #BF99E5

Accessibility & contrast

On white

6.23
#8138CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8138CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8138CC
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8138CC#FFFFFF#000000##FFFFFF
##8138CC1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#715D7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8138cc;
/* rgb */ color: rgb(129, 56, 204);
/* oklch */ color: oklch(51.7% 0.215 301.7);
Tailwind
colors: {
  custom: {
    50: '#ac75dd',
    500: '#8138cc',
    950: '#000000',
  },
}
SCSS
$custom: #8138cc;
$custom-light: #ac75dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8138cc",
  "rgb": {
    "r": 129,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 269.595,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51736,
    "c": 0.21494,
    "h": 301.7
  },
  "luminance": 0.11855
}

Semantic roles & 50–950 ramp

primary
#8138CC
secondary
#B0D18F
accent
#E24595
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8138CC

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

Preview Lab → · Contrast checker → · Palette generator →

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