#8C38D4#8C38D4

#8C38D4 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.7% C 0.225 H 304.2°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8C38D4
RGBrgb(140, 56, 212)
HSLhsl(272, 64%, 53%)
HSVhsv(272, 74%, 83%)
CMYKcmyk(34%, 73.6%, 0%, 16.9%)
CIE-LABlab(43.00, 62.21, -65.41)
CIE-LCHlch(43.00, 90.27, 313.56°)
OKLaboklab(53.65% 0.1265 -0.1863)
OKLCHoklch(53.65% 0.225 304.2)
XYZxyz(24.1103, 13.1573, 63.5440)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C38D4 #80D438
analogous
#3E38D4 #8C38D4 #D438CE
triadic
#8C38D4 #D48C38 #38D48C
tetradic
#8C38D4 #D43E38 #80D438 #38CED4
square
#8C38D4 #D43E38 #80D438 #38CED4
split-complementary
#8C38D4 #CED438 #38D43E
monochromatic
#4C1A78 #6D25AA #8C38D4 #A96ADF #C69DEA

Accessibility & contrast

On white

5.78
#8C38D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8C38D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C38D4
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C38D4#FFFFFF#000000##FFFFFF
##8C38D41.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#0065D1
Tritanopia (blue-blind)
#7E5F83
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8c38d4;
/* rgb */ color: rgb(140, 56, 212);
/* oklch */ color: oklch(53.7% 0.225 304.2);
Tailwind
colors: {
  custom: {
    50: '#b477e2',
    500: '#8c38d4',
    950: '#000000',
  },
}
SCSS
$custom: #8c38d4;
$custom-light: #b477e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c38d4",
  "rgb": {
    "r": 140,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 272.308,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53654,
    "c": 0.22514,
    "h": 304.2
  },
  "luminance": 0.13157
}

Semantic roles & 50–950 ramp

primary
#8C38D4
secondary
#B1D692
accent
#E7408D
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120915
muted
#817B84

Preview Lab

Preview with #8C38D4

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

Preview Lab → · Contrast checker → · Palette generator →

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