#8C34CD#8C34CD

#8C34CD is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.7% C 0.223 H 306.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8C34CD
RGBrgb(140, 52, 205)
HSLhsl(275, 60%, 50%)
HSVhsv(275, 75%, 80%)
CMYKcmyk(31.7%, 74.6%, 0%, 19.6%)
CIE-LABlab(41.91, 62.25, -63.15)
CIE-LCHlch(41.91, 88.68, 314.59°)
OKLaboklab(52.72% 0.1315 -0.1796)
OKLCHoklch(52.72% 0.223 306.2)
XYZxyz(23.0602, 12.4394, 58.9320)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C34CD #75CD34
analogous
#4034CD #8C34CD #CD34C1
triadic
#8C34CD #CD8C34 #34CD8C
tetradic
#8C34CD #CD4034 #75CD34 #34C1CD
square
#8C34CD #CD4034 #75CD34 #34C1CD
split-complementary
#8C34CD #C1CD34 #34CD40
monochromatic
#491B6C #6B279D #8C34CD #A865D9 #C496E5

Accessibility & contrast

On white

6.02
#8C34CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8C34CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C34CD
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C34CD#FFFFFF#000000##FFFFFF
##8C34CD1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#805A7F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8c34cd;
/* rgb */ color: rgb(140, 52, 205);
/* oklch */ color: oklch(52.7% 0.223 306.2);
Tailwind
colors: {
  custom: {
    50: '#b374dd',
    500: '#8c34cd',
    950: '#000000',
  },
}
SCSS
$custom: #8c34cd;
$custom-light: #b374dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c34cd",
  "rgb": {
    "r": 140,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 274.51,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52718,
    "c": 0.22257,
    "h": 306.2
  },
  "luminance": 0.12439
}

Semantic roles & 50–950 ramp

primary
#8C34CD
secondary
#A9D18C
accent
#E44488
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8C34CD

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

Preview Lab → · Contrast checker → · Palette generator →

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