#8038AB#8038AB

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

Color values

HEX#8038AB
RGBrgb(128, 56, 171)
HSLhsl(278, 51%, 45%)
HSVhsv(278, 67%, 67%)
CMYKcmyk(25.1%, 67.3%, 0%, 32.9%)
CIE-LABlab(38.48, 50.52, -48.82)
CIE-LCHlch(38.48, 70.26, 315.98°)
OKLaboklab(49.17% 0.1163 -0.1379)
OKLCHoklch(49.17% 0.18 310.1)
XYZxyz(17.6655, 10.3582, 39.5889)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038AB #63AB38
analogous
#4638AB #8038AB #AB389D
triadic
#8038AB #AB8038 #38AB80
tetradic
#8038AB #AB4638 #63AB38 #389DAB
square
#8038AB #AB4638 #63AB38 #389DAB
split-complementary
#8038AB #9DAB38 #38AB46
monochromatic
#3B1A4F #5D297D #8038AB #9E58C8 #B986D7

Accessibility & contrast

On white

6.84
#8038AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8038AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038AB
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038AB#FFFFFF#000000##FFFFFF
##8038AB1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#275CA8
Tritanopia (blue-blind)
#7A506D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8038ab;
/* rgb */ color: rgb(128, 56, 171);
/* oklch */ color: oklch(49.2% 0.180 310.1);
Tailwind
colors: {
  custom: {
    50: '#a974c5',
    500: '#8038ab',
    950: '#000000',
  },
}
SCSS
$custom: #8038ab;
$custom-light: #a974c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8038ab",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 277.565,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49173,
    "c": 0.1804,
    "h": 310.1
  },
  "luminance": 0.10358
}

Semantic roles & 50–950 ramp

primary
#8038AB
secondary
#97C17D
accent
#DA4E82
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #8038AB

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

Preview Lab → · Contrast checker → · Palette generator →

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