#8038BD#8038BD

#8038BD is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.5% C 0.199 H 305.0°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8038BD
RGBrgb(128, 56, 189)
HSLhsl(272, 54%, 48%)
HSVhsv(272, 70%, 74%)
CMYKcmyk(32.3%, 70.4%, 0%, 25.9%)
CIE-LABlab(39.73, 54.66, -57.43)
CIE-LCHlch(39.73, 79.28, 313.58°)
OKLaboklab(50.47% 0.1142 -0.1632)
OKLCHoklch(50.47% 0.199 305)
XYZxyz(19.4995, 11.0918, 49.2479)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038BD #75BD38
analogous
#3D38BD #8038BD #BD38B7
triadic
#8038BD #BD8038 #38BD80
tetradic
#8038BD #BD3D38 #75BD38 #38B7BD
square
#8038BD #BD3D38 #75BD38 #38B7BD
split-complementary
#8038BD #B7BD38 #38BD3D
monochromatic
#401C5F #602A8E #8038BD #9E62D0 #BB91DE

Accessibility & contrast

On white

6.52
#8038BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8038BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038BD
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038BD#FFFFFF#000000##FFFFFF
##8038BD1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#755777
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8038bd;
/* rgb */ color: rgb(128, 56, 189);
/* oklch */ color: oklch(50.5% 0.199 305.0);
Tailwind
colors: {
  custom: {
    50: '#aa74d2',
    500: '#8038bd',
    950: '#000000',
  },
}
SCSS
$custom: #8038bd;
$custom-light: #aa74d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8038bd",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 272.481,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5047,
    "c": 0.19918,
    "h": 305
  },
  "luminance": 0.11092
}

Semantic roles & 50–950 ramp

primary
#8038BD
secondary
#A6C987
accent
#DE4A8E
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #8038BD

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

Preview Lab → · Contrast checker → · Palette generator →

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