#8172F8#8172F8

#8172F8 is a light, vivid blue. Relative luminance 0.235; OKLCH L 63.3% C 0.193 H 284.5°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8172F8
RGBrgb(129, 114, 248)
HSLhsl(247, 91%, 71%)
HSVhsv(247, 54%, 97%)
CMYKcmyk(48%, 54%, 0%, 2.7%)
CIE-LABlab(55.56, 39.42, -65.45)
CIE-LCHlch(55.56, 76.40, 301.06°)
OKLaboklab(63.3% 0.0484 -0.1868)
OKLCHoklch(63.3% 0.193 284.5)
XYZxyz(32.0088, 23.4775, 91.6338)
Luminance0.2348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8172F8 #E9F872
analogous
#72A6F8 #8172F8 #C472F8
triadic
#8172F8 #F88172 #72F881
tetradic
#8172F8 #F872A6 #E9F872 #72F8C4
square
#8172F8 #F872A6 #E9F872 #72F8C4
split-complementary
#8172F8 #F8C472 #A6F872
monochromatic
#240BE4 #4D38F5 #8172F8 #B5ACFB #E5E2FE

Accessibility & contrast

On white

3.69
#8172F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#8172F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8172F8
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8172F8#FFFFFF#000000##000000
##8172F81.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2589FD
Deuteranopia (green-blind)
#1C81F5
Tritanopia (blue-blind)
#5790AA
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8172f8;
/* rgb */ color: rgb(129, 114, 248);
/* oklch */ color: oklch(63.3% 0.193 284.5);
Tailwind
colors: {
  custom: {
    50: '#ad9bfb',
    500: '#8172f8',
    950: '#000000',
  },
}
SCSS
$custom: #8172f8;
$custom-light: #ad9bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#8172f8",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 248
  },
  "hsl": {
    "h": 246.716,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.63296,
    "c": 0.19294,
    "h": 284.5
  },
  "luminance": 0.23479
}

Semantic roles & 50–950 ramp

primary
#8172F8
secondary
#F1F5D1
accent
#E600CC
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8172F8

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

Preview Lab → · Contrast checker → · Palette generator →

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