#B172EB#B172EB

#B172EB is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.9% C 0.181 H 306.2°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#B172EB
RGBrgb(177, 114, 235)
HSLhsl(271, 75%, 68%)
HSVhsv(271, 51%, 92%)
CMYKcmyk(24.7%, 51.5%, 0%, 7.8%)
CIE-LABlab(59.32, 47.32, -51.95)
CIE-LCHlch(59.32, 70.27, 312.33°)
OKLaboklab(66.91% 0.1066 -0.1458)
OKLCHoklch(66.91% 0.181 306.2)
XYZxyz(39.1411, 27.3802, 81.8041)
Luminance0.2738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172EB #ACEB72
analogous
#7472EB #B172EB #EB72E8
triadic
#B172EB #EBB172 #72EBB1
tetradic
#B172EB #EB7472 #ACEB72 #72E8EB
square
#B172EB #EB7472 #ACEB72 #72E8EB
split-complementary
#B172EB #E8EB72 #72EB74
monochromatic
#751CC6 #933CE3 #B172EB #CFA8F3 #ECDDFA

Accessibility & contrast

On white

3.24
#B172EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#B172EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172EB
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172EB#FFFFFF#000000##000000
##B172EB1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8DEF
Deuteranopia (green-blind)
#608FE8
Tritanopia (blue-blind)
#A888A4
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b172eb;
/* rgb */ color: rgb(177, 114, 235);
/* oklch */ color: oklch(66.9% 0.181 306.2);
Tailwind
colors: {
  custom: {
    50: '#cb9cf2',
    500: '#b172eb',
    950: '#000000',
  },
}
SCSS
$custom: #b172eb;
$custom-light: #cb9cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b172eb",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 235
  },
  "hsl": {
    "h": 271.24,
    "s": 75.155,
    "l": 68.431
  },
  "oklch": {
    "l": 0.66908,
    "c": 0.18065,
    "h": 306.2
  },
  "luminance": 0.2738
}

Semantic roles & 50–950 ramp

primary
#B172EB
secondary
#DCEFCA
accent
#D70E6F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B172EB

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

Preview Lab → · Contrast checker → · Palette generator →

#B172EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva