#8C38C2#8C38C2

#8C38C2 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.3% C 0.207 H 308.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8C38C2
RGBrgb(140, 56, 194)
HSLhsl(277, 55%, 49%)
HSVhsv(277, 71%, 76%)
CMYKcmyk(27.8%, 71.1%, 0%, 23.9%)
CIE-LABlab(41.69, 58.18, -57.11)
CIE-LCHlch(41.69, 81.53, 315.53°)
OKLaboklab(52.31% 0.1296 -0.1619)
OKLCHoklch(52.31% 0.207 308.7)
XYZxyz(21.9650, 12.2992, 52.2453)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C38C2 #6EC238
analogous
#4738C2 #8C38C2 #C238B3
triadic
#8C38C2 #C28C38 #38C28C
tetradic
#8C38C2 #C24738 #6EC238 #38B3C2
square
#8C38C2 #C24738 #6EC238 #38B3C2
split-complementary
#8C38C2 #B3C238 #38C247
monochromatic
#471D63 #6A2A93 #8C38C2 #A865D2 #C294E0

Accessibility & contrast

On white

6.07
#8C38C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8C38C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C38C2
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C38C2#FFFFFF#000000##FFFFFF
##8C38C21.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#1563BF
Tritanopia (blue-blind)
#845779
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8c38c2;
/* rgb */ color: rgb(140, 56, 194);
/* oklch */ color: oklch(52.3% 0.207 308.7);
Tailwind
colors: {
  custom: {
    50: '#b276d5',
    500: '#8c38c2',
    950: '#000000',
  },
}
SCSS
$custom: #8c38c2;
$custom-light: #b276d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8c38c2",
  "rgb": {
    "r": 140,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 276.522,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52312,
    "c": 0.20735,
    "h": 308.7
  },
  "luminance": 0.12299
}

Semantic roles & 50–950 ramp

primary
#8C38C2
secondary
#A4CB8A
accent
#DF4984
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8C38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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