#8C3DD7#8C3DD7

#8C3DD7 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.4% C 0.223 H 303.0°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8C3DD7
RGBrgb(140, 61, 215)
HSLhsl(271, 66%, 54%)
HSVhsv(271, 72%, 84%)
CMYKcmyk(34.9%, 71.6%, 0%, 15.7%)
CIE-LABlab(43.97, 60.77, -65.55)
CIE-LCHlch(43.97, 89.39, 312.83°)
OKLaboklab(54.41% 0.1213 -0.1867)
OKLCHoklch(54.41% 0.223 303)
XYZxyz(24.7468, 13.8192, 65.6404)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C3DD7 #88D73D
analogous
#3F3DD7 #8C3DD7 #D73DD5
triadic
#8C3DD7 #D78C3D #3DD78C
tetradic
#8C3DD7 #D73F3D #88D73D #3DD5D7
square
#8C3DD7 #D73F3D #88D73D #3DD5D7
split-complementary
#8C3DD7 #D5D73D #3DD73F
monochromatic
#4E1A7F #6D25B2 #8C3DD7 #AA70E1 #C8A2EC

Accessibility & contrast

On white

5.58
#8C3DD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8C3DD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C3DD7
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C3DD7#FFFFFF#000000##FFFFFF
##8C3DD71.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DB
Deuteranopia (green-blind)
#0068D4
Tritanopia (blue-blind)
#7D6286
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8c3dd7;
/* rgb */ color: rgb(140, 61, 215);
/* oklch */ color: oklch(54.4% 0.223 303.0);
Tailwind
colors: {
  custom: {
    50: '#b379e4',
    500: '#8c3dd7',
    950: '#000000',
  },
}
SCSS
$custom: #8c3dd7;
$custom-light: #b379e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c3dd7",
  "rgb": {
    "r": 140,
    "g": 61,
    "b": 215
  },
  "hsl": {
    "h": 270.779,
    "s": 65.812,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54412,
    "c": 0.22263,
    "h": 303
  },
  "luminance": 0.13819
}

Semantic roles & 50–950 ramp

primary
#8C3DD7
secondary
#B7D997
accent
#E93F92
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8C3DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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