#B172EA#B172EA

#B172EA is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.9% C 0.179 H 306.4°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#B172EA
RGBrgb(177, 114, 234)
HSLhsl(272, 74%, 68%)
HSVhsv(272, 51%, 92%)
CMYKcmyk(24.4%, 51.3%, 0%, 8.2%)
CIE-LABlab(59.27, 47.09, -51.47)
CIE-LCHlch(59.27, 69.76, 312.45°)
OKLaboklab(66.85% 0.1065 -0.1445)
OKLCHoklch(66.85% 0.179 306.4)
XYZxyz(38.9970, 27.3226, 81.0453)
Luminance0.2732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172EA #ABEA72
analogous
#7572EA #B172EA #EA72E7
triadic
#B172EA #EAB172 #72EAB1
tetradic
#B172EA #EA7572 #ABEA72 #72E7EA
square
#B172EA #EA7572 #ABEA72 #72E7EA
split-complementary
#B172EA #E7EA72 #72EA75
monochromatic
#751DC4 #943DE2 #B172EA #CEA7F2 #ECDDFA

Accessibility & contrast

On white

3.25
#B172EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#B172EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172EA
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172EA#FFFFFF#000000##000000
##B172EA1.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8CEE
Deuteranopia (green-blind)
#618FE7
Tritanopia (blue-blind)
#A887A3
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b172ea;
/* rgb */ color: rgb(177, 114, 234);
/* oklch */ color: oklch(66.9% 0.179 306.4);
Tailwind
colors: {
  custom: {
    50: '#cb9cf1',
    500: '#b172ea',
    950: '#000000',
  },
}
SCSS
$custom: #b172ea;
$custom-light: #cb9cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b172ea",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 271.5,
    "s": 74.074,
    "l": 68.235
  },
  "oklch": {
    "l": 0.66852,
    "c": 0.17949,
    "h": 306.4
  },
  "luminance": 0.27322
}

Semantic roles & 50–950 ramp

primary
#B172EA
secondary
#DBEECA
accent
#D60F6E
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B172EA

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

Preview Lab → · Contrast checker → · Palette generator →

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