#8038D5#8038D5

#8038D5 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.3% C 0.224 H 299.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#8038D5
RGBrgb(128, 56, 213)
HSLhsl(268, 65%, 53%)
HSVhsv(268, 74%, 84%)
CMYKcmyk(39.9%, 73.7%, 0%, 16.5%)
CIE-LABlab(41.57, 60.36, -68.39)
CIE-LCHlch(41.57, 91.22, 311.43°)
OKLaboklab(52.34% 0.1096 -0.1954)
OKLCHoklch(52.34% 0.224 299.3)
XYZxyz(22.3235, 12.2214, 64.1207)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038D5 #8DD538
analogous
#383ED5 #8038D5 #CE38D5
triadic
#8038D5 #D58038 #38D580
tetradic
#8038D5 #D5383E #8DD538 #38D5CE
square
#8038D5 #D5383E #8DD538 #38D5CE
split-complementary
#8038D5 #D5CE38 #3ED538
monochromatic
#451A79 #6224AC #8038D5 #A06BE0 #C19DEA

Accessibility & contrast

On white

6.10
#8038D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8038D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038D5
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038D5#FFFFFF#000000##FFFFFF
##8038D51.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#0061D2
Tritanopia (blue-blind)
#6C6084
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8038d5;
/* rgb */ color: rgb(128, 56, 213);
/* oklch */ color: oklch(52.3% 0.224 299.3);
Tailwind
colors: {
  custom: {
    50: '#ac75e3',
    500: '#8038d5',
    950: '#000000',
  },
}
SCSS
$custom: #8038d5;
$custom-light: #ac75e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8038d5",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 267.516,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52339,
    "c": 0.22407,
    "h": 299.3
  },
  "luminance": 0.12222
}

Semantic roles & 50–950 ramp

primary
#8038D5
secondary
#B7D692
accent
#E8409B
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #8038D5

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

Preview Lab → · Contrast checker → · Palette generator →

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