#8C38CF#8C38CF

#8C38CF is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.3% C 0.220 H 305.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8C38CF
RGBrgb(140, 56, 207)
HSLhsl(273, 61%, 52%)
HSVhsv(273, 73%, 81%)
CMYKcmyk(32.4%, 72.9%, 0%, 18.8%)
CIE-LABlab(42.63, 61.07, -63.14)
CIE-LCHlch(42.63, 87.84, 314.05°)
OKLaboklab(53.27% 0.1274 -0.1796)
OKLCHoklch(53.27% 0.22 305.4)
XYZxyz(23.4894, 12.9090, 60.2736)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C38CF #7BCF38
analogous
#4038CF #8C38CF #CF38C7
triadic
#8C38CF #CF8C38 #38CF8C
tetradic
#8C38CF #CF4038 #7BCF38 #38C7CF
square
#8C38CF #CF4038 #7BCF38 #38C7CF
split-complementary
#8C38CF #C7CF38 #38CF40
monochromatic
#4B1B71 #6C27A3 #8C38CF #A869DB #C59BE7

Accessibility & contrast

On white

5.86
#8C38CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8C38CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C38CF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C38CF#FFFFFF#000000##FFFFFF
##8C38CF1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#0065CC
Tritanopia (blue-blind)
#805D81
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8c38cf;
/* rgb */ color: rgb(140, 56, 207);
/* oklch */ color: oklch(53.3% 0.220 305.4);
Tailwind
colors: {
  custom: {
    50: '#b376df',
    500: '#8c38cf',
    950: '#000000',
  },
}
SCSS
$custom: #8c38cf;
$custom-light: #b376df;
$custom-dark: #000000;
JSON
{
  "hex": "#8c38cf",
  "rgb": {
    "r": 140,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 273.377,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53273,
    "c": 0.2202,
    "h": 305.4
  },
  "luminance": 0.12909
}

Semantic roles & 50–950 ramp

primary
#8C38CF
secondary
#AED390
accent
#E4448B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8C38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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