#8172F5#8172F5

#8172F5 is a light, vivid blue. Relative luminance 0.233; OKLCH L 63.1% C 0.189 H 284.8°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8172F5
RGBrgb(129, 114, 245)
HSLhsl(247, 87%, 70%)
HSVhsv(247, 53%, 96%)
CMYKcmyk(47.3%, 53.5%, 0%, 3.9%)
CIE-LABlab(55.37, 38.55, -64.08)
CIE-LCHlch(55.37, 74.78, 301.03°)
OKLaboklab(63.1% 0.0483 -0.1828)
OKLCHoklch(63.1% 0.189 284.8)
XYZxyz(31.5471, 23.2928, 89.2022)
Luminance0.2329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8172F5 #E6F572
analogous
#72A5F5 #8172F5 #C272F5
triadic
#8172F5 #F58172 #72F581
tetradic
#8172F5 #F572A5 #E6F572 #72F5C2
square
#8172F5 #F572A5 #E6F572 #72F5C2
split-complementary
#8172F5 #F5C272 #A5F572
monochromatic
#2710DD #4E39F1 #8172F5 #B4ABF9 #E5E2FD

Accessibility & contrast

On white

3.71
#8172F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#8172F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8172F5
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8172F5#FFFFFF#000000##000000
##8172F51.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A88F9
Deuteranopia (green-blind)
#2481F2
Tritanopia (blue-blind)
#598FA9
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8172f5;
/* rgb */ color: rgb(129, 114, 245);
/* oklch */ color: oklch(63.1% 0.189 284.8);
Tailwind
colors: {
  custom: {
    50: '#ad9bf9',
    500: '#8172f5',
    950: '#000000',
  },
}
SCSS
$custom: #8172f5;
$custom-light: #ad9bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#8172f5",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 245
  },
  "hsl": {
    "h": 246.87,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.63096,
    "c": 0.18904,
    "h": 284.8
  },
  "luminance": 0.23294
}

Semantic roles & 50–950 ramp

primary
#8172F5
secondary
#EFF3CF
accent
#E302CA
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8172F5

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

Preview Lab → · Contrast checker → · Palette generator →

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