#8039D2#8039D2

#8039D2 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.2% C 0.220 H 299.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8039D2
RGBrgb(128, 57, 210)
HSLhsl(268, 63%, 52%)
HSVhsv(268, 73%, 82%)
CMYKcmyk(39%, 72.9%, 0%, 17.6%)
CIE-LABlab(41.48, 59.20, -66.80)
CIE-LCHlch(41.48, 89.26, 311.55°)
OKLaboklab(52.21% 0.1094 -0.1907)
OKLCHoklch(52.21% 0.22 299.8)
XYZxyz(21.9952, 12.1684, 62.1502)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8039D2 #8BD239
analogous
#393FD2 #8039D2 #CC39D2
triadic
#8039D2 #D28039 #39D280
tetradic
#8039D2 #D2393F #8BD239 #39D2CC
square
#8039D2 #D2393F #8BD239 #39D2CC
split-complementary
#8039D2 #D2CC39 #3FD239
monochromatic
#451B76 #6226A8 #8039D2 #A06BDD #C09DE9

Accessibility & contrast

On white

6.12
#8039D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8039D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8039D2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8039D2#FFFFFF#000000##FFFFFF
##8039D21.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0061CF
Tritanopia (blue-blind)
#6D6083
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8039d2;
/* rgb */ color: rgb(128, 57, 210);
/* oklch */ color: oklch(52.2% 0.220 299.8);
Tailwind
colors: {
  custom: {
    50: '#ac76e1',
    500: '#8039d2',
    950: '#000000',
  },
}
SCSS
$custom: #8039d2;
$custom-light: #ac76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8039d2",
  "rgb": {
    "r": 128,
    "g": 57,
    "b": 210
  },
  "hsl": {
    "h": 267.843,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52206,
    "c": 0.21988,
    "h": 299.8
  },
  "luminance": 0.12169
}

Semantic roles & 50–950 ramp

primary
#8039D2
secondary
#B6D592
accent
#E6429A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8039D2

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

Preview Lab → · Contrast checker → · Palette generator →

#8039D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva