#8038C4#8038C4

#8038C4 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.0% C 0.206 H 303.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8038C4
RGBrgb(128, 56, 196)
HSLhsl(271, 56%, 49%)
HSVhsv(271, 71%, 77%)
CMYKcmyk(34.7%, 71.4%, 0%, 23.1%)
CIE-LABlab(40.25, 56.30, -60.68)
CIE-LCHlch(40.25, 82.78, 312.86°)
OKLaboklab(51% 0.113 -0.1728)
OKLCHoklch(51% 0.206 303.2)
XYZxyz(20.2777, 11.4031, 53.3466)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038C4 #7CC438
analogous
#3A38C4 #8038C4 #C438C2
triadic
#8038C4 #C48038 #38C480
tetradic
#8038C4 #C43A38 #7CC438 #38C2C4
square
#8038C4 #C43A38 #7CC438 #38C2C4
split-complementary
#8038C4 #C2C438 #38C43A
monochromatic
#421D65 #612A94 #8038C4 #9E66D3 #BC96E1

Accessibility & contrast

On white

6.40
#8038C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8038C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038C4
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038C4#FFFFFF#000000##FFFFFF
##8038C41.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8038c4;
/* rgb */ color: rgb(128, 56, 196);
/* oklch */ color: oklch(51.0% 0.206 303.2);
Tailwind
colors: {
  custom: {
    50: '#aa75d7',
    500: '#8038c4',
    950: '#000000',
  },
}
SCSS
$custom: #8038c4;
$custom-light: #aa75d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8038c4",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 270.857,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50999,
    "c": 0.20646,
    "h": 303.2
  },
  "luminance": 0.11403
}

Semantic roles & 50–950 ramp

primary
#8038C4
secondary
#ABCC8C
accent
#DF4992
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8038C4

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

Preview Lab → · Contrast checker → · Palette generator →

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