#8038BF#8038BF

#8038BF is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.6% C 0.201 H 304.5°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#8038BF
RGBrgb(128, 56, 191)
HSLhsl(272, 55%, 48%)
HSVhsv(272, 71%, 75%)
CMYKcmyk(33%, 70.7%, 0%, 25.1%)
CIE-LABlab(39.88, 55.13, -58.36)
CIE-LCHlch(39.88, 80.28, 313.37°)
OKLaboklab(50.62% 0.1139 -0.166)
OKLCHoklch(50.62% 0.201 304.5)
XYZxyz(19.7181, 11.1792, 50.3991)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038BF #77BF38
analogous
#3C38BF #8038BF #BF38BA
triadic
#8038BF #BF8038 #38BF80
tetradic
#8038BF #BF3C38 #77BF38 #38BABF
square
#8038BF #BF3C38 #77BF38 #38BABF
split-complementary
#8038BF #BABF38 #38BF3C
monochromatic
#411C60 #602A90 #8038BF #9E63D1 #BB92DF

Accessibility & contrast

On white

6.49
#8038BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8038BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038BF
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038BF#FFFFFF#000000##FFFFFF
##8038BF1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#005EBC
Tritanopia (blue-blind)
#745878
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8038bf;
/* rgb */ color: rgb(128, 56, 191);
/* oklch */ color: oklch(50.6% 0.201 304.5);
Tailwind
colors: {
  custom: {
    50: '#aa75d3',
    500: '#8038bf',
    950: '#000000',
  },
}
SCSS
$custom: #8038bf;
$custom-light: #aa75d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8038bf",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 272,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.5062,
    "c": 0.20126,
    "h": 304.5
  },
  "luminance": 0.11179
}

Semantic roles & 50–950 ramp

primary
#8038BF
secondary
#A7CA89
accent
#DE4A8F
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8038BF

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

Preview Lab → · Contrast checker → · Palette generator →

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