#8C38BB#8C38BB

#8C38BB is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.8% C 0.200 H 310.6°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8C38BB
RGBrgb(140, 56, 187)
HSLhsl(278, 54%, 48%)
HSVhsv(278, 70%, 73%)
CMYKcmyk(25.1%, 70.1%, 0%, 26.7%)
CIE-LABlab(41.20, 56.65, -53.80)
CIE-LCHlch(41.20, 78.13, 316.48°)
OKLaboklab(51.81% 0.1305 -0.1521)
OKLCHoklch(51.81% 0.2 310.6)
XYZxyz(21.1973, 11.9921, 48.2021)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C38BB #67BB38
analogous
#4A38BB #8C38BB #BB38A9
triadic
#8C38BB #BB8C38 #38BB8C
tetradic
#8C38BB #BB4A38 #67BB38 #38A9BB
square
#8C38BB #BB4A38 #67BB38 #38A9BB
split-complementary
#8C38BB #A9BB38 #38BB4A
monochromatic
#451C5D #692A8C #8C38BB #A861D0 #C290DE

Accessibility & contrast

On white

6.18
#8C38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8C38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C38BB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C38BB#FFFFFF#000000##FFFFFF
##8C38BB1.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)
#005DBF
Deuteranopia (green-blind)
#2363B8
Tritanopia (blue-blind)
#865476
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8c38bb;
/* rgb */ color: rgb(140, 56, 187);
/* oklch */ color: oklch(51.8% 0.200 310.6);
Tailwind
colors: {
  custom: {
    50: '#b276d0',
    500: '#8c38bb',
    950: '#000000',
  },
}
SCSS
$custom: #8c38bb;
$custom-light: #b276d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c38bb",
  "rgb": {
    "r": 140,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 278.473,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51814,
    "c": 0.20044,
    "h": 310.6
  },
  "luminance": 0.11992
}

Semantic roles & 50–950 ramp

primary
#8C38BB
secondary
#9EC886
accent
#DD4B7F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8C38BB

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

Preview Lab → · Contrast checker → · Palette generator →

#8C38BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva