#B172EC#B172EC

#B172EC is a light, vivid violet. Relative luminance 0.274; OKLCH L 67.0% C 0.182 H 305.9°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#B172EC
RGBrgb(177, 114, 236)
HSLhsl(271, 76%, 69%)
HSVhsv(271, 52%, 93%)
CMYKcmyk(25%, 51.7%, 0%, 7.5%)
CIE-LABlab(59.38, 47.55, -52.42)
CIE-LCHlch(59.38, 70.77, 312.21°)
OKLaboklab(66.96% 0.1067 -0.1472)
OKLCHoklch(66.96% 0.182 305.9)
XYZxyz(39.2859, 27.4382, 82.5671)
Luminance0.2744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172EC #ADEC72
analogous
#7472EC #B172EC #EC72EA
triadic
#B172EC #ECB172 #72ECB1
tetradic
#B172EC #EC7472 #ADEC72 #72EAEC
square
#B172EC #EC7472 #ADEC72 #72EAEC
split-complementary
#B172EC #EAEC72 #72EC74
monochromatic
#751BC9 #933CE5 #B172EC #CFA8F3 #EDDEFB

Accessibility & contrast

On white

3.24
#B172EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#B172EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172EC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172EC#FFFFFF#000000##000000
##B172EC1.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8DF0
Deuteranopia (green-blind)
#5F8FE9
Tritanopia (blue-blind)
#A888A4
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b172ec;
/* rgb */ color: rgb(177, 114, 236);
/* oklch */ color: oklch(67.0% 0.182 305.9);
Tailwind
colors: {
  custom: {
    50: '#cb9cf3',
    500: '#b172ec',
    950: '#000000',
  },
}
SCSS
$custom: #b172ec;
$custom-light: #cb9cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#b172ec",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 236
  },
  "hsl": {
    "h": 270.984,
    "s": 76.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.66964,
    "c": 0.18181,
    "h": 305.9
  },
  "luminance": 0.27438
}

Semantic roles & 50–950 ramp

primary
#B172EC
secondary
#DCEFCB
accent
#D80D6F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B172EC

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

Preview Lab → · Contrast checker → · Palette generator →

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