#B170FE#B170FE

#B170FE is a light, highly saturated violet. Relative luminance 0.281; OKLCH L 67.7% C 0.206 H 302.4°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#B170FE
RGBrgb(177, 112, 254)
HSLhsl(267, 99%, 72%)
HSVhsv(267, 56%, 100%)
CMYKcmyk(30.3%, 55.9%, 0%, 0.4%)
CIE-LABlab(59.97, 52.80, -61.44)
CIE-LCHlch(59.97, 81.01, 310.68°)
OKLaboklab(67.72% 0.11 -0.1736)
OKLCHoklch(67.72% 0.206 302.4)
XYZxyz(41.8109, 28.0912, 96.9661)
Luminance0.2809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170FE #BDFE70
analogous
#7076FE #B170FE #F870FE
triadic
#B170FE #FEB170 #70FEB1
tetradic
#B170FE #FE7076 #BDFE70 #70FEF8
square
#B170FE #FE7076 #BDFE70 #70FEF8
split-complementary
#B170FE #FEF870 #76FE70
monochromatic
#7002F2 #9033FE #B170FE #D2ADFE #EEE1FF

Accessibility & contrast

On white

3.17
#B170FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#B170FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170FE
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170FE#FFFFFF#000000##000000
##B170FE1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#348FFF
Deuteranopia (green-blind)
#4D90FB
Tritanopia (blue-blind)
#A28CAD
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b170fe;
/* rgb */ color: rgb(177, 112, 254);
/* oklch */ color: oklch(67.7% 0.206 302.4);
Tailwind
colors: {
  custom: {
    50: '#cc9bff',
    500: '#b170fe',
    950: '#000000',
  },
}
SCSS
$custom: #b170fe;
$custom-light: #cc9bff;
$custom-dark: #000000;
JSON
{
  "hex": "#b170fe",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 254
  },
  "hsl": {
    "h": 267.465,
    "s": 98.611,
    "l": 71.765
  },
  "oklch": {
    "l": 0.67724,
    "c": 0.20553,
    "h": 302.4
  },
  "luminance": 0.28091
}

Semantic roles & 50–950 ramp

primary
#B170FE
secondary
#E6F7D3
accent
#E6007C
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #B170FE

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

Preview Lab → · Contrast checker → · Palette generator →

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