#8C38CA#8C38CA

#8C38CA is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.9% C 0.215 H 306.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8C38CA
RGBrgb(140, 56, 202)
HSLhsl(275, 58%, 51%)
HSVhsv(275, 72%, 79%)
CMYKcmyk(30.7%, 72.3%, 0%, 20.8%)
CIE-LABlab(42.26, 59.95, -60.84)
CIE-LCHlch(42.26, 85.42, 314.58°)
OKLaboklab(52.9% 0.1283 -0.1728)
OKLCHoklch(52.9% 0.215 306.6)
XYZxyz(22.8878, 12.6683, 57.1051)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C38CA #76CA38
analogous
#4338CA #8C38CA #CA38BF
triadic
#8C38CA #CA8C38 #38CA8C
tetradic
#8C38CA #CA4338 #76CA38 #38BFCA
square
#8C38CA #CA4338 #76CA38 #38BFCA
split-complementary
#8C38CA #BFCA38 #38CA43
monochromatic
#4A1D6B #6B299B #8C38CA #A868D7 #C499E4

Accessibility & contrast

On white

5.94
#8C38CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8C38CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C38CA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C38CA#FFFFFF#000000##FFFFFF
##8C38CA1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#815A7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8c38ca;
/* rgb */ color: rgb(140, 56, 202);
/* oklch */ color: oklch(52.9% 0.215 306.6);
Tailwind
colors: {
  custom: {
    50: '#b376db',
    500: '#8c38ca',
    950: '#000000',
  },
}
SCSS
$custom: #8c38ca;
$custom-light: #b376db;
$custom-dark: #000000;
JSON
{
  "hex": "#8c38ca",
  "rgb": {
    "r": 140,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 274.521,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52898,
    "c": 0.21526,
    "h": 306.6
  },
  "luminance": 0.12668
}

Semantic roles & 50–950 ramp

primary
#8C38CA
secondary
#AACF8E
accent
#E14788
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8C38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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