#B172F7#B172F7

#B172F7 is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.6% C 0.195 H 303.5°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#B172F7
RGBrgb(177, 114, 247)
HSLhsl(268, 89%, 71%)
HSVhsv(268, 54%, 97%)
CMYKcmyk(28.3%, 53.8%, 0%, 3.1%)
CIE-LABlab(59.98, 50.10, -57.56)
CIE-LCHlch(59.98, 76.31, 311.04°)
OKLaboklab(67.6% 0.1073 -0.1623)
OKLCHoklch(67.6% 0.195 303.5)
XYZxyz(40.9335, 28.0972, 91.2445)
Luminance0.2810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172F7 #B8F772
analogous
#7275F7 #B172F7 #F372F7
triadic
#B172F7 #F7B172 #72F7B1
tetradic
#B172F7 #F77275 #B8F772 #72F7F3
square
#B172F7 #F77275 #B8F772 #72F7F3
split-complementary
#B172F7 #F7F372 #75F772
monochromatic
#720DE2 #9138F4 #B172F7 #D1ACFA #EFE2FD

Accessibility & contrast

On white

3.17
#B172F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#B172F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172F7
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172F7#FFFFFF#000000##000000
##B172F71.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#418FFB
Deuteranopia (green-blind)
#5790F4
Tritanopia (blue-blind)
#A48BAA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b172f7;
/* rgb */ color: rgb(177, 114, 247);
/* oklch */ color: oklch(67.6% 0.195 303.5);
Tailwind
colors: {
  custom: {
    50: '#cc9cfa',
    500: '#b172f7',
    950: '#000000',
  },
}
SCSS
$custom: #b172f7;
$custom-light: #cc9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b172f7",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 247
  },
  "hsl": {
    "h": 268.421,
    "s": 89.262,
    "l": 70.784
  },
  "oklch": {
    "l": 0.676,
    "c": 0.19456,
    "h": 303.5
  },
  "luminance": 0.28097
}

Semantic roles & 50–950 ramp

primary
#B172F7
secondary
#E3F4D1
accent
#E60079
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B172F7

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

Preview Lab → · Contrast checker → · Palette generator →

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