#B172FA#B172FA

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

Color values

HEX#B172FA
RGBrgb(177, 114, 250)
HSLhsl(268, 93%, 71%)
HSVhsv(268, 54%, 98%)
CMYKcmyk(29.2%, 54.4%, 0%, 2%)
CIE-LABlab(60.14, 50.81, -58.95)
CIE-LCHlch(60.14, 77.83, 310.76°)
OKLaboklab(67.78% 0.1074 -0.1663)
OKLCHoklch(67.78% 0.198 302.9)
XYZxyz(41.4002, 28.2839, 93.7022)
Luminance0.2828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172FA #BBFA72
analogous
#7277FA #B172FA #F572FA
triadic
#B172FA #FAB172 #72FAB1
tetradic
#B172FA #FA7277 #BBFA72 #72FAF5
square
#B172FA #FA7277 #BBFA72 #72FAF5
split-complementary
#B172FA #FAF572 #77FA72
monochromatic
#7108E9 #9037F8 #B172FA #D2ADFC #EFE1FE

Accessibility & contrast

On white

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

On black

6.66
#B172FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172FA
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172FA#FFFFFF#000000##000000
##B172FA1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E90FF
Deuteranopia (green-blind)
#5491F7
Tritanopia (blue-blind)
#A38CAB
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b172fa;
/* rgb */ color: rgb(177, 114, 250);
/* oklch */ color: oklch(67.8% 0.198 302.9);
Tailwind
colors: {
  custom: {
    50: '#cc9cfd',
    500: '#b172fa',
    950: '#000000',
  },
}
SCSS
$custom: #b172fa;
$custom-light: #cc9cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b172fa",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 250
  },
  "hsl": {
    "h": 267.794,
    "s": 93.151,
    "l": 71.373
  },
  "oklch": {
    "l": 0.67778,
    "c": 0.19803,
    "h": 302.9
  },
  "luminance": 0.28284
}

Semantic roles & 50–950 ramp

primary
#B172FA
secondary
#E5F6D2
accent
#E6007B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #B172FA

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

Preview Lab → · Contrast checker → · Palette generator →

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