#B172EF#B172EF

#B172EF is a light, vivid violet. Relative luminance 0.276; OKLCH L 67.1% C 0.185 H 305.2°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#B172EF
RGBrgb(177, 114, 239)
HSLhsl(270, 80%, 69%)
HSVhsv(270, 52%, 94%)
CMYKcmyk(25.9%, 52.3%, 0%, 6.3%)
CIE-LABlab(59.54, 48.24, -53.83)
CIE-LCHlch(59.54, 72.28, 311.86°)
OKLaboklab(67.14% 0.1069 -0.1514)
OKLCHoklch(67.14% 0.185 305.2)
XYZxyz(39.7254, 27.6140, 84.8818)
Luminance0.2761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172EF #B0EF72
analogous
#7372EF #B172EF #EF72EF
triadic
#B172EF #EFB172 #72EFB1
tetradic
#B172EF #EF7372 #B0EF72 #72EFEF
square
#B172EF #EF7372 #B0EF72 #72EFEF
split-complementary
#B172EF #EFEF72 #72EF73
monochromatic
#7418CF #933BE9 #B172EF #CFA9F5 #EEE0FB

Accessibility & contrast

On white

3.22
#B172EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#B172EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172EF
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172EF#FFFFFF#000000##000000
##B172EF1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#498DF3
Deuteranopia (green-blind)
#5D90EC
Tritanopia (blue-blind)
#A789A6
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b172ef;
/* rgb */ color: rgb(177, 114, 239);
/* oklch */ color: oklch(67.1% 0.185 305.2);
Tailwind
colors: {
  custom: {
    50: '#cb9cf5',
    500: '#b172ef',
    950: '#000000',
  },
}
SCSS
$custom: #b172ef;
$custom-light: #cb9cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#b172ef",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 239
  },
  "hsl": {
    "h": 270.24,
    "s": 79.618,
    "l": 69.216
  },
  "oklch": {
    "l": 0.67135,
    "c": 0.18528,
    "h": 305.2
  },
  "luminance": 0.27614
}

Semantic roles & 50–950 ramp

primary
#B172EF
secondary
#DEF1CC
accent
#DC0A72
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #B172EF

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

Preview Lab → · Contrast checker → · Palette generator →

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