#8172F6#8172F6

#8172F6 is a light, vivid blue. Relative luminance 0.234; OKLCH L 63.2% C 0.190 H 284.7°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8172F6
RGBrgb(129, 114, 246)
HSLhsl(247, 88%, 71%)
HSVhsv(247, 54%, 96%)
CMYKcmyk(47.6%, 53.7%, 0%, 3.5%)
CIE-LABlab(55.44, 38.84, -64.54)
CIE-LCHlch(55.44, 75.32, 301.04°)
OKLaboklab(63.16% 0.0483 -0.1841)
OKLCHoklch(63.16% 0.19 284.7)
XYZxyz(31.7002, 23.3541, 90.0084)
Luminance0.2336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8172F6 #E7F672
analogous
#72A5F6 #8172F6 #C372F6
triadic
#8172F6 #F68172 #72F681
tetradic
#8172F6 #F672A5 #E7F672 #72F6C3
square
#8172F6 #F672A5 #E7F672 #72F6C3
split-complementary
#8172F6 #F6C372 #A5F672
monochromatic
#260EDF #4E38F2 #8172F6 #B4ACFA #E5E2FD

Accessibility & contrast

On white

3.70
#8172F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#8172F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8172F6
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8172F6#FFFFFF#000000##000000
##8172F61.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2989FB
Deuteranopia (green-blind)
#2181F3
Tritanopia (blue-blind)
#588FA9
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8172f6;
/* rgb */ color: rgb(129, 114, 246);
/* oklch */ color: oklch(63.2% 0.190 284.7);
Tailwind
colors: {
  custom: {
    50: '#ad9bfa',
    500: '#8172f6',
    950: '#000000',
  },
}
SCSS
$custom: #8172f6;
$custom-light: #ad9bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#8172f6",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 246
  },
  "hsl": {
    "h": 246.818,
    "s": 88,
    "l": 70.588
  },
  "oklch": {
    "l": 0.63162,
    "c": 0.19034,
    "h": 284.7
  },
  "luminance": 0.23356
}

Semantic roles & 50–950 ramp

primary
#8172F6
secondary
#F0F4D0
accent
#E501CB
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8172F6

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

Preview Lab → · Contrast checker → · Palette generator →

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