#8038BB#8038BB

#8038BB is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.3% C 0.197 H 305.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#8038BB
RGBrgb(128, 56, 187)
HSLhsl(273, 54%, 48%)
HSVhsv(273, 70%, 73%)
CMYKcmyk(31.6%, 70.1%, 0%, 26.7%)
CIE-LABlab(39.59, 54.19, -56.49)
CIE-LCHlch(39.59, 78.28, 313.81°)
OKLaboklab(50.32% 0.1145 -0.1604)
OKLCHoklch(50.32% 0.197 305.5)
XYZxyz(19.2839, 11.0055, 48.1124)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038BB #73BB38
analogous
#3F38BB #8038BB #BB38B4
triadic
#8038BB #BB8038 #38BB80
tetradic
#8038BB #BB3F38 #73BB38 #38B4BB
square
#8038BB #BB3F38 #73BB38 #38B4BB
split-complementary
#8038BB #B4BB38 #38BB3F
monochromatic
#401C5D #602A8C #8038BB #9E61D0 #BB90DE

Accessibility & contrast

On white

6.56
#8038BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8038BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038BB
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038BB#FFFFFF#000000##FFFFFF
##8038BB1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#755675
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8038bb;
/* rgb */ color: rgb(128, 56, 187);
/* oklch */ color: oklch(50.3% 0.197 305.5);
Tailwind
colors: {
  custom: {
    50: '#aa74d0',
    500: '#8038bb',
    950: '#000000',
  },
}
SCSS
$custom: #8038bb;
$custom-light: #aa74d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8038bb",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 272.977,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50321,
    "c": 0.19709,
    "h": 305.5
  },
  "luminance": 0.11005
}

Semantic roles & 50–950 ramp

primary
#8038BB
secondary
#A4C886
accent
#DD4B8D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8038BB

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

Preview Lab → · Contrast checker → · Palette generator →

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