#8038BA#8038BA

#8038BA is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.2% C 0.196 H 305.8°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#8038BA
RGBrgb(128, 56, 186)
HSLhsl(273, 54%, 47%)
HSVhsv(273, 70%, 73%)
CMYKcmyk(31.2%, 69.9%, 0%, 27.1%)
CIE-LABlab(39.52, 53.96, -56.02)
CIE-LCHlch(39.52, 77.78, 313.93°)
OKLaboklab(50.25% 0.1146 -0.1591)
OKLCHoklch(50.25% 0.196 305.8)
XYZxyz(19.1772, 10.9629, 47.5506)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038BA #72BA38
analogous
#3F38BA #8038BA #BA38B3
triadic
#8038BA #BA8038 #38BA80
tetradic
#8038BA #BA3F38 #72BA38 #38B3BA
square
#8038BA #BA3F38 #72BA38 #38B3BA
split-complementary
#8038BA #B3BA38 #38BA3F
monochromatic
#3F1C5C #602A8B #8038BA #9E60CF #BA8FDD

Accessibility & contrast

On white

6.58
#8038BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8038BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038BA
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038BA#FFFFFF#000000##FFFFFF
##8038BA1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#055DB7
Tritanopia (blue-blind)
#765675
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8038ba;
/* rgb */ color: rgb(128, 56, 186);
/* oklch */ color: oklch(50.2% 0.196 305.8);
Tailwind
colors: {
  custom: {
    50: '#aa74d0',
    500: '#8038ba',
    950: '#000000',
  },
}
SCSS
$custom: #8038ba;
$custom-light: #aa74d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8038ba",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 273.231,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50247,
    "c": 0.19605,
    "h": 305.8
  },
  "luminance": 0.10963
}

Semantic roles & 50–950 ramp

primary
#8038BA
secondary
#A3C886
accent
#DD4B8C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8038BA

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

Preview Lab → · Contrast checker → · Palette generator →

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