#B172F2#B172F2

#B172F2 is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.3% C 0.189 H 304.6°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#B172F2
RGBrgb(177, 114, 242)
HSLhsl(270, 83%, 70%)
HSVhsv(270, 53%, 95%)
CMYKcmyk(26.9%, 52.9%, 0%, 5.1%)
CIE-LABlab(59.70, 48.93, -55.24)
CIE-LCHlch(59.70, 73.79, 311.54°)
OKLaboklab(67.31% 0.1071 -0.1555)
OKLCHoklch(67.31% 0.189 304.6)
XYZxyz(40.1723, 27.7927, 87.2354)
Luminance0.2779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172F2 #B3F272
analogous
#7273F2 #B172F2 #F172F2
triadic
#B172F2 #F2B172 #72F2B1
tetradic
#B172F2 #F27273 #B3F272 #72F2F1
square
#B172F2 #F27273 #B3F272 #72F2F1
split-complementary
#B172F2 #F2F172 #73F272
monochromatic
#7314D6 #923AED #B172F2 #D0AAF7 #EFE2FC

Accessibility & contrast

On white

3.20
#B172F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#B172F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172F2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172F2#FFFFFF#000000##000000
##B172F21.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#478EF6
Deuteranopia (green-blind)
#5B90EF
Tritanopia (blue-blind)
#A68AA7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b172f2;
/* rgb */ color: rgb(177, 114, 242);
/* oklch */ color: oklch(67.3% 0.189 304.6);
Tailwind
colors: {
  custom: {
    50: '#cb9cf7',
    500: '#b172f2',
    950: '#000000',
  },
}
SCSS
$custom: #b172f2;
$custom-light: #cb9cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b172f2",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 242
  },
  "hsl": {
    "h": 269.531,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67308,
    "c": 0.18876,
    "h": 304.6
  },
  "luminance": 0.27793
}

Semantic roles & 50–950 ramp

primary
#B172F2
secondary
#E0F2CE
accent
#E00674
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B172F2

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

Preview Lab → · Contrast checker → · Palette generator →

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