#8C4BD5#8C4BD5

#8C4BD5 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.0% C 0.203 H 301.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8C4BD5
RGBrgb(140, 75, 213)
HSLhsl(268, 62%, 56%)
HSVhsv(268, 65%, 84%)
CMYKcmyk(34.3%, 64.8%, 0%, 16.5%)
CIE-LABlab(46.19, 53.73, -60.81)
CIE-LCHlch(46.19, 81.14, 311.46°)
OKLaboklab(55.95% 0.1071 -0.1728)
OKLCHoklch(55.95% 0.203 301.8)
XYZxyz(25.3387, 15.4116, 64.5777)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4BD5 #94D54B
analogous
#4B4FD5 #8C4BD5 #D14BD5
triadic
#8C4BD5 #D58C4B #4BD58C
tetradic
#8C4BD5 #D54B4F #94D54B #4BD5D1
square
#8C4BD5 #D54B4F #94D54B #4BD5D1
split-complementary
#8C4BD5 #D5D14B #4FD54B
monochromatic
#501F86 #6D2BB8 #8C4BD5 #AC7DE1 #CBAEEC

Accessibility & contrast

On white

5.14
#8C4BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8C4BD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4BD5
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4BD5#FFFFFF#000000##FFFFFF
##8C4BD51.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#106DD2
Tritanopia (blue-blind)
#7D6A89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8c4bd5;
/* rgb */ color: rgb(140, 75, 213);
/* oklch */ color: oklch(56.0% 0.203 301.8);
Tailwind
colors: {
  custom: {
    50: '#b381e3',
    500: '#8c4bd5',
    950: '#000000',
  },
}
SCSS
$custom: #8c4bd5;
$custom-light: #b381e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4bd5",
  "rgb": {
    "r": 140,
    "g": 75,
    "b": 213
  },
  "hsl": {
    "h": 268.261,
    "s": 62.162,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55954,
    "c": 0.20333,
    "h": 301.8
  },
  "luminance": 0.15412
}

Semantic roles & 50–950 ramp

primary
#8C4BD5
secondary
#C0DAA2
accent
#E54399
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8C4BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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