#8C38CD#8C38CD

#8C38CD is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.1% C 0.218 H 305.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8C38CD
RGBrgb(140, 56, 205)
HSLhsl(274, 60%, 51%)
HSVhsv(274, 73%, 80%)
CMYKcmyk(31.7%, 72.7%, 0%, 19.6%)
CIE-LABlab(42.48, 60.62, -62.22)
CIE-LCHlch(42.48, 86.87, 314.25°)
OKLaboklab(53.12% 0.1278 -0.1769)
OKLCHoklch(53.12% 0.218 305.8)
XYZxyz(23.2464, 12.8118, 58.9940)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C38CD #79CD38
analogous
#4138CD #8C38CD #CD38C3
triadic
#8C38CD #CD8C38 #38CD8C
tetradic
#8C38CD #CD4138 #79CD38 #38C3CD
square
#8C38CD #CD4138 #79CD38 #38C3CD
split-complementary
#8C38CD #C3CD38 #38CD41
monochromatic
#4B1C6F #6C28A0 #8C38CD #A869D9 #C59AE6

Accessibility & contrast

On white

5.89
#8C38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8C38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C38CD
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C38CD#FFFFFF#000000##FFFFFF
##8C38CD1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#0065CA
Tritanopia (blue-blind)
#805C80
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8c38cd;
/* rgb */ color: rgb(140, 56, 205);
/* oklch */ color: oklch(53.1% 0.218 305.8);
Tailwind
colors: {
  custom: {
    50: '#b376dd',
    500: '#8c38cd',
    950: '#000000',
  },
}
SCSS
$custom: #8c38cd;
$custom-light: #b376dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c38cd",
  "rgb": {
    "r": 140,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 273.826,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53122,
    "c": 0.21823,
    "h": 305.8
  },
  "luminance": 0.12812
}

Semantic roles & 50–950 ramp

primary
#8C38CD
secondary
#ACD18F
accent
#E3458A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8C38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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