#B172FD#B172FD

#B172FD is a light, highly saturated violet. Relative luminance 0.285; OKLCH L 68.0% C 0.201 H 302.3°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#B172FD
RGBrgb(177, 114, 253)
HSLhsl(267, 97%, 72%)
HSVhsv(267, 55%, 99%)
CMYKcmyk(30%, 54.9%, 0%, 0.8%)
CIE-LABlab(60.31, 51.52, -60.34)
CIE-LCHlch(60.31, 79.34, 310.49°)
OKLaboklab(67.96% 0.1075 -0.1704)
OKLCHoklch(67.96% 0.201 302.3)
XYZxyz(41.8743, 28.4735, 96.1993)
Luminance0.2847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172FD #BEFD72
analogous
#7279FD #B172FD #F672FD
triadic
#B172FD #FDB172 #72FDB1
tetradic
#B172FD #FD7279 #BEFD72 #72FDF6
square
#B172FD #FD7279 #BEFD72 #72FDF6
split-complementary
#B172FD #FDF672 #79FD72
monochromatic
#6F03F1 #9036FC #B172FD #D2AEFE #EEE1FF

Accessibility & contrast

On white

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

On black

6.69
#B172FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172FD
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172FD#FFFFFF#000000##000000
##B172FD1.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A90FF
Deuteranopia (green-blind)
#5191FA
Tritanopia (blue-blind)
#A28DAD
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b172fd;
/* rgb */ color: rgb(177, 114, 253);
/* oklch */ color: oklch(68.0% 0.201 302.3);
Tailwind
colors: {
  custom: {
    50: '#cc9dff',
    500: '#b172fd',
    950: '#000000',
  },
}
SCSS
$custom: #b172fd;
$custom-light: #cc9dff;
$custom-dark: #000000;
JSON
{
  "hex": "#b172fd",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 253
  },
  "hsl": {
    "h": 267.194,
    "s": 97.203,
    "l": 71.961
  },
  "oklch": {
    "l": 0.67958,
    "c": 0.20149,
    "h": 302.3
  },
  "luminance": 0.28474
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B172FD

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

Preview Lab → · Contrast checker → · Palette generator →

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