#8C38CC#8C38CC

#8C38CC is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.0% C 0.217 H 306.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8C38CC
RGBrgb(140, 56, 204)
HSLhsl(274, 59%, 51%)
HSVhsv(274, 73%, 80%)
CMYKcmyk(31.4%, 72.5%, 0%, 20%)
CIE-LABlab(42.40, 60.40, -61.76)
CIE-LCHlch(42.40, 86.39, 314.36°)
OKLaboklab(53.05% 0.128 -0.1755)
OKLCHoklch(53.05% 0.217 306.1)
XYZxyz(23.1261, 12.7636, 58.3604)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C38CC #78CC38
analogous
#4238CC #8C38CC #CC38C2
triadic
#8C38CC #CC8C38 #38CC8C
tetradic
#8C38CC #CC4238 #78CC38 #38C2CC
square
#8C38CC #CC4238 #78CC38 #38C2CC
split-complementary
#8C38CC #C2CC38 #38CC42
monochromatic
#4A1C6E #6B299E #8C38CC #A869D8 #C499E5

Accessibility & contrast

On white

5.91
#8C38CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8C38CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C38CC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C38CC#FFFFFF#000000##FFFFFF
##8C38CC1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0064C9
Tritanopia (blue-blind)
#815B7F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8c38cc;
/* rgb */ color: rgb(140, 56, 204);
/* oklch */ color: oklch(53.0% 0.217 306.1);
Tailwind
colors: {
  custom: {
    50: '#b376dc',
    500: '#8c38cc',
    950: '#000000',
  },
}
SCSS
$custom: #8c38cc;
$custom-light: #b376dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8c38cc",
  "rgb": {
    "r": 140,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 274.054,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53047,
    "c": 0.21724,
    "h": 306.1
  },
  "luminance": 0.12763
}

Semantic roles & 50–950 ramp

primary
#8C38CC
secondary
#ABD18F
accent
#E24589
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8C38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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