#B172FC#B172FC

#B172FC is a light, highly saturated violet. Relative luminance 0.284; OKLCH L 67.9% C 0.200 H 302.5°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#B172FC
RGBrgb(177, 114, 252)
HSLhsl(267, 96%, 72%)
HSVhsv(267, 55%, 99%)
CMYKcmyk(29.8%, 54.8%, 0%, 1.2%)
CIE-LABlab(60.26, 51.28, -59.88)
CIE-LCHlch(60.26, 78.83, 310.58°)
OKLaboklab(67.9% 0.1075 -0.169)
OKLCHoklch(67.9% 0.2 302.5)
XYZxyz(41.7155, 28.4100, 95.3626)
Luminance0.2841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172FC #BDFC72
analogous
#7278FC #B172FC #F672FC
triadic
#B172FC #FCB172 #72FCB1
tetradic
#B172FC #FC7278 #BDFC72 #72FCF6
square
#B172FC #FC7278 #BDFC72 #72FCF6
split-complementary
#B172FC #FCF672 #78FC72
monochromatic
#7005EF #9036FB #B172FC #D2AEFD #EEE1FE

Accessibility & contrast

On white

3.14
#B172FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#B172FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172FC
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172FC#FFFFFF#000000##000000
##B172FC1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C90FF
Deuteranopia (green-blind)
#5291F9
Tritanopia (blue-blind)
#A38DAC
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b172fc;
/* rgb */ color: rgb(177, 114, 252);
/* oklch */ color: oklch(67.9% 0.200 302.5);
Tailwind
colors: {
  custom: {
    50: '#cc9dfe',
    500: '#b172fc',
    950: '#000000',
  },
}
SCSS
$custom: #b172fc;
$custom-light: #cc9dfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b172fc",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 252
  },
  "hsl": {
    "h": 267.391,
    "s": 95.833,
    "l": 71.765
  },
  "oklch": {
    "l": 0.67898,
    "c": 0.20034,
    "h": 302.5
  },
  "luminance": 0.2841
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B172FC

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

Preview Lab → · Contrast checker → · Palette generator →

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