#8C3FE4#8C3FE4

#8C3FE4 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.6% C 0.234 H 300.0°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8C3FE4
RGBrgb(140, 63, 228)
HSLhsl(268, 75%, 57%)
HSVhsv(268, 72%, 89%)
CMYKcmyk(38.6%, 72.4%, 0%, 10.6%)
CIE-LABlab(45.26, 62.95, -70.86)
CIE-LCHlch(45.26, 94.79, 311.62°)
OKLaboklab(55.63% 0.1169 -0.2023)
OKLCHoklch(55.63% 0.234 300)
XYZxyz(26.5928, 14.7316, 74.8262)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C3FE4 #97E43F
analogous
#3F45E4 #8C3FE4 #DE3FE4
triadic
#8C3FE4 #E48C3F #3FE48C
tetradic
#8C3FE4 #E43F45 #97E43F #3FE4DE
square
#8C3FE4 #E43F45 #97E43F #3FE4DE
split-complementary
#8C3FE4 #E4DE3F #45E43F
monochromatic
#501594 #6D1CC9 #8C3FE4 #AC75EC #CCAAF3

Accessibility & contrast

On white

5.32
#8C3FE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8C3FE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C3FE4
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C3FE4#FFFFFF#000000##FFFFFF
##8C3FE41.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE9
Deuteranopia (green-blind)
#006AE1
Tritanopia (blue-blind)
#78698E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8c3fe4;
/* rgb */ color: rgb(140, 63, 228);
/* oklch */ color: oklch(55.6% 0.234 300.0);
Tailwind
colors: {
  custom: {
    50: '#b57bee',
    500: '#8c3fe4',
    950: '#000000',
  },
}
SCSS
$custom: #8c3fe4;
$custom-light: #b57bee;
$custom-dark: #000000;
JSON
{
  "hex": "#8c3fe4",
  "rgb": {
    "r": 140,
    "g": 63,
    "b": 228
  },
  "hsl": {
    "h": 268,
    "s": 75.342,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55633,
    "c": 0.23367,
    "h": 300
  },
  "luminance": 0.14732
}

Semantic roles & 50–950 ramp

primary
#8C3FE4
secondary
#C2E19E
accent
#F2369A
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8C3FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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