#8172EA#8172EA

#8172EA is a light, vivid blue. Relative luminance 0.226; OKLCH L 62.4% C 0.175 H 285.9°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8172EA
RGBrgb(129, 114, 234)
HSLhsl(248, 74%, 68%)
HSVhsv(248, 51%, 92%)
CMYKcmyk(44.9%, 51.3%, 0%, 8.2%)
CIE-LABlab(54.70, 35.38, -59.04)
CIE-LCHlch(54.70, 68.83, 300.93°)
OKLaboklab(62.38% 0.0478 -0.1679)
OKLCHoklch(62.38% 0.175 285.9)
XYZxyz(29.9176, 22.6410, 80.6197)
Luminance0.2264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8172EA #DBEA72
analogous
#729FEA #8172EA #BD72EA
triadic
#8172EA #EA8172 #72EA81
tetradic
#8172EA #EA729F #DBEA72 #72EABD
square
#8172EA #EA729F #DBEA72 #72EABD
split-complementary
#8172EA #EABD72 #9FEA72
monochromatic
#321DC4 #513DE2 #8172EA #B1A7F2 #E0DDFA

Accessibility & contrast

On white

3.80
#8172EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#8172EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8172EA
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8172EA#FFFFFF#000000##000000
##8172EA1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A86EE
Deuteranopia (green-blind)
#377FE7
Tritanopia (blue-blind)
#5F8CA3
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8172ea;
/* rgb */ color: rgb(129, 114, 234);
/* oklch */ color: oklch(62.4% 0.175 285.9);
Tailwind
colors: {
  custom: {
    50: '#ab9bf1',
    500: '#8172ea',
    950: '#000000',
  },
}
SCSS
$custom: #8172ea;
$custom-light: #ab9bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#8172ea",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 247.5,
    "s": 74.074,
    "l": 68.235
  },
  "oklch": {
    "l": 0.62379,
    "c": 0.17459,
    "h": 285.9
  },
  "luminance": 0.22642
}

Semantic roles & 50–950 ramp

primary
#8172EA
secondary
#EAEECA
accent
#D60FBD
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8172EA

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

Preview Lab → · Contrast checker → · Palette generator →

#8172EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva