#8138CD#8138CD

#8138CD is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.8% C 0.216 H 301.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8138CD
RGBrgb(129, 56, 205)
HSLhsl(269, 60%, 51%)
HSVhsv(269, 73%, 80%)
CMYKcmyk(37.1%, 72.7%, 0%, 19.6%)
CIE-LABlab(41.06, 58.62, -64.59)
CIE-LCHlch(41.06, 87.22, 312.23°)
OKLaboklab(51.82% 0.1127 -0.1842)
OKLCHoklch(51.82% 0.216 301.5)
XYZxyz(21.4842, 11.9031, 58.9114)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8138CD #84CD38
analogous
#3839CD #8138CD #CB38CD
triadic
#8138CD #CD8138 #38CD81
tetradic
#8138CD #CD3839 #84CD38 #38CDCB
square
#8138CD #CD3839 #84CD38 #38CDCB
split-complementary
#8138CD #CDCB38 #39CD38
monochromatic
#441C6F #6328A0 #8138CD #A069D9 #BF9AE6

Accessibility & contrast

On white

6.21
#8138CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8138CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8138CD
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8138CD#FFFFFF#000000##FFFFFF
##8138CD1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#705D7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8138cd;
/* rgb */ color: rgb(129, 56, 205);
/* oklch */ color: oklch(51.8% 0.216 301.5);
Tailwind
colors: {
  custom: {
    50: '#ac75dd',
    500: '#8138cd',
    950: '#000000',
  },
}
SCSS
$custom: #8138cd;
$custom-light: #ac75dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8138cd",
  "rgb": {
    "r": 129,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 269.396,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51815,
    "c": 0.21597,
    "h": 301.5
  },
  "luminance": 0.11903
}

Semantic roles & 50–950 ramp

primary
#8138CD
secondary
#B1D18F
accent
#E34595
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8138CD

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

Preview Lab → · Contrast checker → · Palette generator →

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