#B172FB#B172FB

#B172FB is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.8% C 0.199 H 302.7°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#B172FB
RGBrgb(177, 114, 251)
HSLhsl(268, 94%, 72%)
HSVhsv(268, 55%, 98%)
CMYKcmyk(29.5%, 54.6%, 0%, 1.6%)
CIE-LABlab(60.20, 51.04, -59.41)
CIE-LCHlch(60.20, 78.33, 310.67°)
OKLaboklab(67.84% 0.1075 -0.1677)
OKLCHoklch(67.84% 0.199 302.7)
XYZxyz(41.5574, 28.3468, 94.5302)
Luminance0.2835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172FB #BCFB72
analogous
#7278FB #B172FB #F572FB
triadic
#B172FB #FBB172 #72FBB1
tetradic
#B172FB #FB7278 #BCFB72 #72FBF5
square
#B172FB #FB7278 #BCFB72 #72FBF5
split-complementary
#B172FB #FBF572 #78FB72
monochromatic
#7007EC #9036F9 #B172FB #D2AEFD #EFE1FE

Accessibility & contrast

On white

3.15
#B172FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#B172FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172FB
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172FB#FFFFFF#000000##000000
##B172FB1.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D90FF
Deuteranopia (green-blind)
#5391F8
Tritanopia (blue-blind)
#A38DAC
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b172fb;
/* rgb */ color: rgb(177, 114, 251);
/* oklch */ color: oklch(67.8% 0.199 302.7);
Tailwind
colors: {
  custom: {
    50: '#cc9cfd',
    500: '#b172fb',
    950: '#000000',
  },
}
SCSS
$custom: #b172fb;
$custom-light: #cc9cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b172fb",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 251
  },
  "hsl": {
    "h": 267.591,
    "s": 94.483,
    "l": 71.569
  },
  "oklch": {
    "l": 0.67838,
    "c": 0.19918,
    "h": 302.7
  },
  "luminance": 0.28347
}

Semantic roles & 50–950 ramp

primary
#B172FB
secondary
#E6F6D3
accent
#E6007C
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #B172FB

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

Preview Lab → · Contrast checker → · Palette generator →

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