#8172F2#8172F2

#8172F2 is a light, vivid blue. Relative luminance 0.231; OKLCH L 62.9% C 0.185 H 285.1°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8172F2
RGBrgb(129, 114, 242)
HSLhsl(247, 83%, 70%)
HSVhsv(247, 53%, 95%)
CMYKcmyk(46.7%, 52.9%, 0%, 5.1%)
CIE-LABlab(55.19, 37.68, -62.72)
CIE-LCHlch(55.19, 73.16, 301.00°)
OKLaboklab(62.9% 0.0482 -0.1787)
OKLCHoklch(62.9% 0.185 285.1)
XYZxyz(31.0929, 23.1111, 86.8098)
Luminance0.2311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8172F2 #E3F272
analogous
#72A3F2 #8172F2 #C172F2
triadic
#8172F2 #F28172 #72F281
tetradic
#8172F2 #F272A3 #E3F272 #72F2C1
square
#8172F2 #F272A3 #E3F272 #72F2C1
split-complementary
#8172F2 #F2C172 #A3F272
monochromatic
#2A14D6 #4F3AED #8172F2 #B3AAF7 #E5E2FC

Accessibility & contrast

On white

3.73
#8172F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#8172F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8172F2
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8172F2#FFFFFF#000000##000000
##8172F21.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F88F6
Deuteranopia (green-blind)
#2A80EF
Tritanopia (blue-blind)
#5B8EA7
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8172f2;
/* rgb */ color: rgb(129, 114, 242);
/* oklch */ color: oklch(62.9% 0.185 285.1);
Tailwind
colors: {
  custom: {
    50: '#ac9bf7',
    500: '#8172f2',
    950: '#000000',
  },
}
SCSS
$custom: #8172f2;
$custom-light: #ac9bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#8172f2",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 242
  },
  "hsl": {
    "h": 247.031,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.62898,
    "c": 0.18513,
    "h": 285.1
  },
  "luminance": 0.23113
}

Semantic roles & 50–950 ramp

primary
#8172F2
secondary
#EEF2CE
accent
#E006C6
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8172F2

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

Preview Lab → · Contrast checker → · Palette generator →

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