#B172F0#B172F0

#B172F0 is a light, vivid violet. Relative luminance 0.277; OKLCH L 67.2% C 0.186 H 305.0°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#B172F0
RGBrgb(177, 114, 240)
HSLhsl(270, 81%, 69%)
HSVhsv(270, 53%, 94%)
CMYKcmyk(26.3%, 52.5%, 0%, 5.9%)
CIE-LABlab(59.59, 48.47, -54.30)
CIE-LCHlch(59.59, 72.79, 311.75°)
OKLaboklab(67.19% 0.1069 -0.1527)
OKLCHoklch(67.19% 0.186 305)
XYZxyz(39.8736, 27.6732, 85.6620)
Luminance0.2767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172F0 #B1F072
analogous
#7272F0 #B172F0 #F072F0
triadic
#B172F0 #F0B172 #72F0B1
tetradic
#B172F0 #F07272 #B1F072 #72F0F0
square
#B172F0 #F07272 #B1F072 #72F0F0
split-complementary
#B172F0 #F0F072 #72F072
monochromatic
#7416D1 #923BEA #B172F0 #D0A9F6 #EEE1FC

Accessibility & contrast

On white

3.21
#B172F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#B172F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172F0
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172F0#FFFFFF#000000##000000
##B172F01.003.216.536.53
#FFFFFF3.211.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#488EF4
Deuteranopia (green-blind)
#5C90ED
Tritanopia (blue-blind)
#A689A6
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b172f0;
/* rgb */ color: rgb(177, 114, 240);
/* oklch */ color: oklch(67.2% 0.186 305.0);
Tailwind
colors: {
  custom: {
    50: '#cb9cf5',
    500: '#b172f0',
    950: '#000000',
  },
}
SCSS
$custom: #b172f0;
$custom-light: #cb9cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#b172f0",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 240
  },
  "hsl": {
    "h": 270,
    "s": 80.769,
    "l": 69.412
  },
  "oklch": {
    "l": 0.67193,
    "c": 0.18645,
    "h": 305
  },
  "luminance": 0.27673
}

Semantic roles & 50–950 ramp

primary
#B172F0
secondary
#DFF1CD
accent
#DD0873
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #B172F0

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

Preview Lab → · Contrast checker → · Palette generator →

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