#8C3DD4#8C3DD4

#8C3DD4 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.2% C 0.220 H 303.7°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8C3DD4
RGBrgb(140, 61, 212)
HSLhsl(271, 64%, 54%)
HSVhsv(271, 71%, 83%)
CMYKcmyk(34%, 71.2%, 0%, 16.9%)
CIE-LABlab(43.75, 60.08, -64.19)
CIE-LCHlch(43.75, 87.92, 313.10°)
OKLaboklab(54.19% 0.1218 -0.1827)
OKLCHoklch(54.19% 0.22 303.7)
XYZxyz(24.3649, 13.6664, 63.6289)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C3DD4 #85D43D
analogous
#403DD4 #8C3DD4 #D43DD0
triadic
#8C3DD4 #D48C3D #3DD48C
tetradic
#8C3DD4 #D4403D #85D43D #3DD0D4
square
#8C3DD4 #D4403D #85D43D #3DD0D4
split-complementary
#8C3DD4 #D0D43D #3DD440
monochromatic
#4E1B7B #6D26AD #8C3DD4 #AA6FDF #C7A1EA

Accessibility & contrast

On white

5.63
#8C3DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8C3DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C3DD4
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C3DD4#FFFFFF#000000##FFFFFF
##8C3DD41.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#7E6185
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8c3dd4;
/* rgb */ color: rgb(140, 61, 212);
/* oklch */ color: oklch(54.2% 0.220 303.7);
Tailwind
colors: {
  custom: {
    50: '#b379e2',
    500: '#8c3dd4',
    950: '#000000',
  },
}
SCSS
$custom: #8c3dd4;
$custom-light: #b379e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c3dd4",
  "rgb": {
    "r": 140,
    "g": 61,
    "b": 212
  },
  "hsl": {
    "h": 271.391,
    "s": 63.713,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54185,
    "c": 0.21957,
    "h": 303.7
  },
  "luminance": 0.13666
}

Semantic roles & 50–950 ramp

primary
#8C3DD4
secondary
#B5D796
accent
#E74190
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #8C3DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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