#8138CF#8138CF

#8138CF is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.0% C 0.218 H 301.0°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8138CF
RGBrgb(129, 56, 207)
HSLhsl(269, 61%, 52%)
HSVhsv(269, 73%, 81%)
CMYKcmyk(37.7%, 72.9%, 0%, 18.8%)
CIE-LABlab(41.22, 59.10, -65.49)
CIE-LCHlch(41.22, 88.21, 312.06°)
OKLaboklab(51.97% 0.1123 -0.1869)
OKLCHoklch(51.97% 0.218 301)
XYZxyz(21.7272, 12.0003, 60.1910)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8138CF #86CF38
analogous
#383BCF #8138CF #CD38CF
triadic
#8138CF #CF8138 #38CF81
tetradic
#8138CF #CF383B #86CF38 #38CFCD
square
#8138CF #CF383B #86CF38 #38CFCD
split-complementary
#8138CF #CFCD38 #3BCF38
monochromatic
#451B71 #6327A3 #8138CF #A069DB #BF9BE7

Accessibility & contrast

On white

6.18
#8138CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8138CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8138CF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8138CF#FFFFFF#000000##FFFFFF
##8138CF1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#705E81
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8138cf;
/* rgb */ color: rgb(129, 56, 207);
/* oklch */ color: oklch(52.0% 0.218 301.0);
Tailwind
colors: {
  custom: {
    50: '#ac75df',
    500: '#8138cf',
    950: '#000000',
  },
}
SCSS
$custom: #8138cf;
$custom-light: #ac75df;
$custom-dark: #000000;
JSON
{
  "hex": "#8138cf",
  "rgb": {
    "r": 129,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 269.007,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51973,
    "c": 0.21803,
    "h": 301
  },
  "luminance": 0.12
}

Semantic roles & 50–950 ramp

primary
#8138CF
secondary
#B3D390
accent
#E44497
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8138CF

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

Preview Lab → · Contrast checker → · Palette generator →

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