#8172DA#8172DA

#8172DA is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.4% C 0.153 H 287.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8172DA
RGBrgb(129, 114, 218)
HSLhsl(249, 58%, 65%)
HSVhsv(249, 48%, 85%)
CMYKcmyk(40.8%, 47.7%, 0%, 14.5%)
CIE-LABlab(53.77, 30.84, -51.53)
CIE-LCHlch(53.77, 60.05, 300.89°)
OKLaboklab(61.39% 0.0464 -0.1459)
OKLCHoklch(61.39% 0.153 287.6)
XYZxyz(27.7219, 21.7628, 69.0561)
Luminance0.2176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8172DA #CBDA72
analogous
#7297DA #8172DA #B572DA
triadic
#8172DA #DA8172 #72DA81
tetradic
#8172DA #DA7297 #CBDA72 #72DAB5
square
#8172DA #DA7297 #CBDA72 #72DAB5
split-complementary
#8172DA #DAB572 #97DA72
monochromatic
#3D2CA6 #5642CD #8172DA #ACA2E7 #D8D3F3

Accessibility & contrast

On white

3.92
#8172DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#8172DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8172DA
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8172DA#FFFFFF#000000##000000
##8172DA1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4983DE
Deuteranopia (green-blind)
#487ED8
Tritanopia (blue-blind)
#68879C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8172da;
/* rgb */ color: rgb(129, 114, 218);
/* oklch */ color: oklch(61.4% 0.153 287.6);
Tailwind
colors: {
  custom: {
    50: '#aa9ae6',
    500: '#8172da',
    950: '#000000',
  },
}
SCSS
$custom: #8172da;
$custom-light: #aa9ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#8172da",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 218
  },
  "hsl": {
    "h": 248.654,
    "s": 58.427,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61386,
    "c": 0.1531,
    "h": 287.6
  },
  "luminance": 0.21764
}

Semantic roles & 50–950 ramp

primary
#8172DA
secondary
#E0E6C2
accent
#C61FAE
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #8172DA

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

Preview Lab → · Contrast checker → · Palette generator →

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