#8172E2#8172E2

#8172E2 is a mid, vivid blue. Relative luminance 0.222; OKLCH L 61.9% C 0.164 H 286.7°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8172E2
RGBrgb(129, 114, 226)
HSLhsl(248, 66%, 67%)
HSVhsv(248, 50%, 89%)
CMYKcmyk(42.9%, 49.6%, 0%, 11.4%)
CIE-LABlab(54.23, 33.09, -55.31)
CIE-LCHlch(54.23, 64.46, 300.89°)
OKLaboklab(61.88% 0.0472 -0.157)
OKLCHoklch(61.88% 0.164 286.7)
XYZxyz(28.7941, 22.1916, 74.7030)
Luminance0.2219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8172E2 #D3E272
analogous
#729BE2 #8172E2 #B972E2
triadic
#8172E2 #E28172 #72E281
tetradic
#8172E2 #E2729B #D3E272 #72E2B9
square
#8172E2 #E2729B #D3E272 #72E2B9
split-complementary
#8172E2 #E2B972 #9BE272
monochromatic
#3825B4 #543FD8 #8172E2 #AEA5EC #DCD8F7

Accessibility & contrast

On white

3.86
#8172E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#8172E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8172E2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8172E2#FFFFFF#000000##000000
##8172E21.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4285E6
Deuteranopia (green-blind)
#417FDF
Tritanopia (blue-blind)
#64899F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8172e2;
/* rgb */ color: rgb(129, 114, 226);
/* oklch */ color: oklch(61.9% 0.164 286.7);
Tailwind
colors: {
  custom: {
    50: '#ab9bec',
    500: '#8172e2',
    950: '#000000',
  },
}
SCSS
$custom: #8172e2;
$custom-light: #ab9bec;
$custom-dark: #000000;
JSON
{
  "hex": "#8172e2",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 226
  },
  "hsl": {
    "h": 248.036,
    "s": 65.882,
    "l": 66.667
  },
  "oklch": {
    "l": 0.61875,
    "c": 0.16392,
    "h": 286.7
  },
  "luminance": 0.22193
}

Semantic roles & 50–950 ramp

primary
#8172E2
secondary
#E5EAC6
accent
#CE18B5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #8172E2

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

Preview Lab → · Contrast checker → · Palette generator →

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