#8038C2#8038C2

#8038C2 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.8% C 0.204 H 303.7°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#8038C2
RGBrgb(128, 56, 194)
HSLhsl(271, 55%, 49%)
HSVhsv(271, 71%, 76%)
CMYKcmyk(34%, 71.1%, 0%, 23.9%)
CIE-LABlab(40.10, 55.83, -59.76)
CIE-LCHlch(40.10, 81.78, 313.05°)
OKLaboklab(50.85% 0.1134 -0.1701)
OKLCHoklch(50.85% 0.204 303.7)
XYZxyz(20.0516, 11.3126, 52.1557)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038C2 #7AC238
analogous
#3B38C2 #8038C2 #C238BF
triadic
#8038C2 #C28038 #38C280
tetradic
#8038C2 #C23B38 #7AC238 #38BFC2
square
#8038C2 #C23B38 #7AC238 #38BFC2
split-complementary
#8038C2 #BFC238 #38C23B
monochromatic
#411D63 #612A93 #8038C2 #9E65D2 #BC94E0

Accessibility & contrast

On white

6.44
#8038C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8038C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038C2
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038C2#FFFFFF#000000##FFFFFF
##8038C21.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#735979
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8038c2;
/* rgb */ color: rgb(128, 56, 194);
/* oklch */ color: oklch(50.8% 0.204 303.7);
Tailwind
colors: {
  custom: {
    50: '#aa75d5',
    500: '#8038c2',
    950: '#000000',
  },
}
SCSS
$custom: #8038c2;
$custom-light: #aa75d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8038c2",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 271.304,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50847,
    "c": 0.20438,
    "h": 303.7
  },
  "luminance": 0.11313
}

Semantic roles & 50–950 ramp

primary
#8038C2
secondary
#A9CB8A
accent
#DF4991
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8038C2

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

Preview Lab → · Contrast checker → · Palette generator →

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