#8038AC#8038AC

#8038AC is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.2% C 0.181 H 309.8°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#8038AC
RGBrgb(128, 56, 172)
HSLhsl(277, 51%, 45%)
HSVhsv(277, 67%, 67%)
CMYKcmyk(25.6%, 67.4%, 0%, 32.5%)
CIE-LABlab(38.54, 50.75, -49.31)
CIE-LCHlch(38.54, 70.76, 315.83°)
OKLaboklab(49.24% 0.1162 -0.1393)
OKLCHoklch(49.24% 0.181 309.8)
XYZxyz(17.7612, 10.3965, 40.0928)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038AC #64AC38
analogous
#4638AC #8038AC #AC389E
triadic
#8038AC #AC8038 #38AC80
tetradic
#8038AC #AC4638 #64AC38 #389EAC
square
#8038AC #AC4638 #64AC38 #389EAC
split-complementary
#8038AC #9EAC38 #38AC46
monochromatic
#3B1A50 #5E297E #8038AC #9E58C9 #B987D8

Accessibility & contrast

On white

6.82
#8038AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8038AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038AC
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038AC#FFFFFF#000000##FFFFFF
##8038AC1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#265CA9
Tritanopia (blue-blind)
#7A506D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8038ac;
/* rgb */ color: rgb(128, 56, 172);
/* oklch */ color: oklch(49.2% 0.181 309.8);
Tailwind
colors: {
  custom: {
    50: '#a974c5',
    500: '#8038ac',
    950: '#000000',
  },
}
SCSS
$custom: #8038ac;
$custom-light: #a974c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8038ac",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 277.241,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49242,
    "c": 0.18145,
    "h": 309.8
  },
  "luminance": 0.10396
}

Semantic roles & 50–950 ramp

primary
#8038AC
secondary
#98C27E
accent
#DA4D83
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #8038AC

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

Preview Lab → · Contrast checker → · Palette generator →

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