#8039C4#8039C4

#8039C4 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.1% C 0.205 H 303.1°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8039C4
RGBrgb(128, 57, 196)
HSLhsl(271, 55%, 50%)
HSVhsv(271, 71%, 77%)
CMYKcmyk(34.7%, 70.9%, 0%, 23.1%)
CIE-LABlab(40.41, 55.85, -60.42)
CIE-LCHlch(40.41, 82.28, 312.75°)
OKLaboklab(51.11% 0.112 -0.172)
OKLCHoklch(51.11% 0.205 303.1)
XYZxyz(20.3267, 11.5010, 53.3629)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8039C4 #7DC439
analogous
#3A39C4 #8039C4 #C439C3
triadic
#8039C4 #C48039 #39C480
tetradic
#8039C4 #C43A39 #7DC439 #39C3C4
square
#8039C4 #C43A39 #7DC439 #39C3C4
split-complementary
#8039C4 #C3C439 #39C43A
monochromatic
#421D65 #612B95 #8039C4 #9E67D3 #BC97E1

Accessibility & contrast

On white

6.36
#8039C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8039C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8039C4
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8039C4#FFFFFF#000000##FFFFFF
##8039C41.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#725A7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8039c4;
/* rgb */ color: rgb(128, 57, 196);
/* oklch */ color: oklch(51.1% 0.205 303.1);
Tailwind
colors: {
  custom: {
    50: '#aa75d7',
    500: '#8039c4',
    950: '#000000',
  },
}
SCSS
$custom: #8039c4;
$custom-light: #aa75d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8039c4",
  "rgb": {
    "r": 128,
    "g": 57,
    "b": 196
  },
  "hsl": {
    "h": 270.647,
    "s": 54.941,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51113,
    "c": 0.20528,
    "h": 303.1
  },
  "luminance": 0.11501
}

Semantic roles & 50–950 ramp

primary
#8039C4
secondary
#ACCC8D
accent
#DE4A92
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8039C4

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

Preview Lab → · Contrast checker → · Palette generator →

#8039C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva