#B170FA#B170FA

#B170FA is a light, highly saturated violet. Relative luminance 0.278; OKLCH L 67.5% C 0.201 H 303.2°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#B170FA
RGBrgb(177, 112, 250)
HSLhsl(268, 93%, 71%)
HSVhsv(268, 55%, 98%)
CMYKcmyk(29.2%, 55.2%, 0%, 2%)
CIE-LABlab(59.74, 51.86, -59.60)
CIE-LCHlch(59.74, 79.00, 311.03°)
OKLaboklab(67.48% 0.1099 -0.1682)
OKLCHoklch(67.48% 0.201 303.2)
XYZxyz(41.1771, 27.8376, 93.6278)
Luminance0.2784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170FA #B9FA70
analogous
#7074FA #B170FA #F670FA
triadic
#B170FA #FAB170 #70FAB1
tetradic
#B170FA #FA7074 #B9FA70 #70FAF6
square
#B170FA #FA7074 #B9FA70 #70FAF6
split-complementary
#B170FA #FAF670 #74FA70
monochromatic
#7108E8 #9135F8 #B170FA #D1ABFC #EFE1FE

Accessibility & contrast

On white

3.20
#B170FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#B170FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170FA
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170FA#FFFFFF#000000##000000
##B170FA1.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8FFF
Deuteranopia (green-blind)
#5190F7
Tritanopia (blue-blind)
#A38BAB
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b170fa;
/* rgb */ color: rgb(177, 112, 250);
/* oklch */ color: oklch(67.5% 0.201 303.2);
Tailwind
colors: {
  custom: {
    50: '#cc9bfd',
    500: '#b170fa',
    950: '#000000',
  },
}
SCSS
$custom: #b170fa;
$custom-light: #cc9bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b170fa",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 250
  },
  "hsl": {
    "h": 268.261,
    "s": 93.243,
    "l": 70.98
  },
  "oklch": {
    "l": 0.67482,
    "c": 0.20095,
    "h": 303.2
  },
  "luminance": 0.27838
}

Semantic roles & 50–950 ramp

primary
#B170FA
secondary
#E4F5D1
accent
#E60079
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #B170FA

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

Preview Lab → · Contrast checker → · Palette generator →

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