#B170F9#B170F9

#B170F9 is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.4% C 0.200 H 303.4°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#B170F9
RGBrgb(177, 112, 249)
HSLhsl(268, 92%, 71%)
HSVhsv(268, 55%, 98%)
CMYKcmyk(28.9%, 55%, 0%, 2.4%)
CIE-LABlab(59.69, 51.63, -59.14)
CIE-LCHlch(59.69, 78.50, 311.12°)
OKLaboklab(67.42% 0.1099 -0.1669)
OKLCHoklch(67.42% 0.2 303.4)
XYZxyz(41.0207, 27.7751, 92.8042)
Luminance0.2777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170F9 #B8F970
analogous
#7073F9 #B170F9 #F570F9
triadic
#B170F9 #F9B170 #70F9B1
tetradic
#B170F9 #F97073 #B8F970 #70F9F5
square
#B170F9 #F97073 #B8F970 #70F9F5
split-complementary
#B170F9 #F9F570 #73F970
monochromatic
#720AE5 #9135F7 #B170F9 #D1ABFB #EFE2FE

Accessibility & contrast

On white

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

On black

6.56
#B170F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170F9
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170F9#FFFFFF#000000##000000
##B170F91.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8EFE
Deuteranopia (green-blind)
#5290F6
Tritanopia (blue-blind)
#A48BAA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b170f9;
/* rgb */ color: rgb(177, 112, 249);
/* oklch */ color: oklch(67.4% 0.200 303.4);
Tailwind
colors: {
  custom: {
    50: '#cc9bfc',
    500: '#b170f9',
    950: '#000000',
  },
}
SCSS
$custom: #b170f9;
$custom-light: #cc9bfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b170f9",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 249
  },
  "hsl": {
    "h": 268.467,
    "s": 91.946,
    "l": 70.784
  },
  "oklch": {
    "l": 0.67422,
    "c": 0.19981,
    "h": 303.4
  },
  "luminance": 0.27775
}

Semantic roles & 50–950 ramp

primary
#B170F9
secondary
#E3F5D0
accent
#E60079
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B170F9

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

Preview Lab → · Contrast checker → · Palette generator →

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