#B170FB#B170FB

#B170FB is a light, highly saturated violet. Relative luminance 0.279; OKLCH L 67.5% C 0.202 H 303.0°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#B170FB
RGBrgb(177, 112, 251)
HSLhsl(268, 95%, 71%)
HSVhsv(268, 55%, 98%)
CMYKcmyk(29.5%, 55.4%, 0%, 1.6%)
CIE-LABlab(59.80, 52.10, -60.06)
CIE-LCHlch(59.80, 79.50, 310.94°)
OKLaboklab(67.54% 0.1099 -0.1696)
OKLCHoklch(67.54% 0.202 303)
XYZxyz(41.3343, 27.9005, 94.4558)
Luminance0.2790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170FB #BAFB70
analogous
#7074FB #B170FB #F770FB
triadic
#B170FB #FBB170 #70FBB1
tetradic
#B170FB #FB7074 #BAFB70 #70FBF7
square
#B170FB #FB7074 #BAFB70 #70FBF7
split-complementary
#B170FB #FBF770 #74FB70
monochromatic
#7107EA #9134F9 #B170FB #D1ACFD #EFE1FE

Accessibility & contrast

On white

3.19
#B170FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#B170FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170FB
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170FB#FFFFFF#000000##000000
##B170FB1.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#388FFF
Deuteranopia (green-blind)
#5090F8
Tritanopia (blue-blind)
#A38BAB
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b170fb;
/* rgb */ color: rgb(177, 112, 251);
/* oklch */ color: oklch(67.5% 0.202 303.0);
Tailwind
colors: {
  custom: {
    50: '#cc9bfd',
    500: '#b170fb',
    950: '#000000',
  },
}
SCSS
$custom: #b170fb;
$custom-light: #cc9bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b170fb",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 251
  },
  "hsl": {
    "h": 268.058,
    "s": 94.558,
    "l": 71.176
  },
  "oklch": {
    "l": 0.67542,
    "c": 0.20209,
    "h": 303
  },
  "luminance": 0.279
}

Semantic roles & 50–950 ramp

primary
#B170FB
secondary
#E5F6D1
accent
#E6007A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #B170FB

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

Preview Lab → · Contrast checker → · Palette generator →

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