#B170FC#B170FC

#B170FC is a light, highly saturated violet. Relative luminance 0.280; OKLCH L 67.6% C 0.203 H 302.8°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#B170FC
RGBrgb(177, 112, 252)
HSLhsl(268, 96%, 71%)
HSVhsv(268, 56%, 99%)
CMYKcmyk(29.8%, 55.6%, 0%, 1.2%)
CIE-LABlab(59.86, 52.33, -60.52)
CIE-LCHlch(59.86, 80.01, 310.85°)
OKLaboklab(67.6% 0.11 -0.1709)
OKLCHoklch(67.6% 0.203 302.8)
XYZxyz(41.4923, 27.9637, 95.2882)
Luminance0.2796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170FC #BBFC70
analogous
#7075FC #B170FC #F770FC
triadic
#B170FC #FCB170 #70FCB1
tetradic
#B170FC #FC7075 #BBFC70 #70FCF7
square
#B170FC #FC7075 #BBFC70 #70FCF7
split-complementary
#B170FC #FCF770 #75FC70
monochromatic
#7105ED #9034FB #B170FC #D2ACFD #EFE1FE

Accessibility & contrast

On white

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

On black

6.59
#B170FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170FC
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170FC#FFFFFF#000000##000000
##B170FC1.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#378FFF
Deuteranopia (green-blind)
#4F90F9
Tritanopia (blue-blind)
#A38BAC
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b170fc;
/* rgb */ color: rgb(177, 112, 252);
/* oklch */ color: oklch(67.6% 0.203 302.8);
Tailwind
colors: {
  custom: {
    50: '#cc9bfe',
    500: '#b170fc',
    950: '#000000',
  },
}
SCSS
$custom: #b170fc;
$custom-light: #cc9bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b170fc",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 252
  },
  "hsl": {
    "h": 267.857,
    "s": 95.89,
    "l": 71.373
  },
  "oklch": {
    "l": 0.67603,
    "c": 0.20324,
    "h": 302.8
  },
  "luminance": 0.27964
}

Semantic roles & 50–950 ramp

primary
#B170FC
secondary
#E5F6D2
accent
#E6007B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #B170FC

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

Preview Lab → · Contrast checker → · Palette generator →

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