#8C38C8#8C38C8

#8C38C8 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.8% C 0.213 H 307.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8C38C8
RGBrgb(140, 56, 200)
HSLhsl(275, 57%, 50%)
HSVhsv(275, 72%, 78%)
CMYKcmyk(30%, 72%, 0%, 21.6%)
CIE-LABlab(42.11, 59.51, -59.92)
CIE-LCHlch(42.11, 84.44, 314.80°)
OKLaboklab(52.75% 0.1287 -0.1701)
OKLCHoklch(52.75% 0.213 307.1)
XYZxyz(22.6525, 12.5742, 55.8661)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C38C8 #74C838
analogous
#4438C8 #8C38C8 #C838BC
triadic
#8C38C8 #C88C38 #38C88C
tetradic
#8C38C8 #C84438 #74C838 #38BCC8
square
#8C38C8 #C84438 #74C838 #38BCC8
split-complementary
#8C38C8 #BCC838 #38C844
monochromatic
#491D69 #6B2A99 #8C38C8 #A868D5 #C398E3

Accessibility & contrast

On white

5.97
#8C38C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8C38C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C38C8
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C38C8#FFFFFF#000000##FFFFFF
##8C38C81.005.973.515.97
#FFFFFF5.971.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#825A7D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8c38c8;
/* rgb */ color: rgb(140, 56, 200);
/* oklch */ color: oklch(52.8% 0.213 307.1);
Tailwind
colors: {
  custom: {
    50: '#b376da',
    500: '#8c38c8',
    950: '#000000',
  },
}
SCSS
$custom: #8c38c8;
$custom-light: #b376da;
$custom-dark: #000000;
JSON
{
  "hex": "#8c38c8",
  "rgb": {
    "r": 140,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 275,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5275,
    "c": 0.21329,
    "h": 307.1
  },
  "luminance": 0.12574
}

Semantic roles & 50–950 ramp

primary
#8C38C8
secondary
#A9CE8E
accent
#E04887
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8C38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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