#8038BC#8038BC

#8038BC is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.4% C 0.198 H 305.2°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#8038BC
RGBrgb(128, 56, 188)
HSLhsl(273, 54%, 48%)
HSVhsv(273, 70%, 74%)
CMYKcmyk(31.9%, 70.2%, 0%, 26.3%)
CIE-LABlab(39.66, 54.42, -56.96)
CIE-LCHlch(39.66, 78.78, 313.70°)
OKLaboklab(50.4% 0.1143 -0.1618)
OKLCHoklch(50.4% 0.198 305.2)
XYZxyz(19.3913, 11.0485, 48.6782)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038BC #74BC38
analogous
#3E38BC #8038BC #BC38B6
triadic
#8038BC #BC8038 #38BC80
tetradic
#8038BC #BC3E38 #74BC38 #38B6BC
square
#8038BC #BC3E38 #74BC38 #38B6BC
split-complementary
#8038BC #B6BC38 #38BC3E
monochromatic
#401C5E #602A8D #8038BC #9E61D0 #BB90DE

Accessibility & contrast

On white

6.54
#8038BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8038BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038BC
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038BC#FFFFFF#000000##FFFFFF
##8038BC1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#005EB9
Tritanopia (blue-blind)
#755676
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8038bc;
/* rgb */ color: rgb(128, 56, 188);
/* oklch */ color: oklch(50.4% 0.198 305.2);
Tailwind
colors: {
  custom: {
    50: '#aa74d1',
    500: '#8038bc',
    950: '#000000',
  },
}
SCSS
$custom: #8038bc;
$custom-light: #aa74d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8038bc",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 272.727,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50395,
    "c": 0.19814,
    "h": 305.2
  },
  "luminance": 0.11048
}

Semantic roles & 50–950 ramp

primary
#8038BC
secondary
#A5C987
accent
#DD4A8D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8038BC

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

Preview Lab → · Contrast checker → · Palette generator →

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