#B170F8#B170F8

#B170F8 is a light, vivid violet. Relative luminance 0.277; OKLCH L 67.4% C 0.199 H 303.6°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#B170F8
RGBrgb(177, 112, 248)
HSLhsl(269, 91%, 71%)
HSVhsv(269, 55%, 97%)
CMYKcmyk(28.6%, 54.8%, 0%, 2.7%)
CIE-LABlab(59.63, 51.39, -58.67)
CIE-LCHlch(59.63, 78.00, 311.22°)
OKLaboklab(67.36% 0.1099 -0.1655)
OKLCHoklch(67.36% 0.199 303.6)
XYZxyz(40.8651, 27.7128, 91.9850)
Luminance0.2771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170F8 #B7F870
analogous
#7073F8 #B170F8 #F570F8
triadic
#B170F8 #F8B170 #70F8B1
tetradic
#B170F8 #F87073 #B7F870 #70F8F5
square
#B170F8 #F87073 #B7F870 #70F8F5
split-complementary
#B170F8 #F8F570 #73F870
monochromatic
#720BE3 #9136F5 #B170F8 #D1AAFB #EFE2FE

Accessibility & contrast

On white

3.21
#B170F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#B170F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170F8
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170F8#FFFFFF#000000##000000
##B170F81.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C8EFD
Deuteranopia (green-blind)
#538FF5
Tritanopia (blue-blind)
#A48AAA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b170f8;
/* rgb */ color: rgb(177, 112, 248);
/* oklch */ color: oklch(67.4% 0.199 303.6);
Tailwind
colors: {
  custom: {
    50: '#cc9bfb',
    500: '#b170f8',
    950: '#000000',
  },
}
SCSS
$custom: #b170f8;
$custom-light: #cc9bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#b170f8",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 248
  },
  "hsl": {
    "h": 268.676,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.67362,
    "c": 0.19866,
    "h": 303.6
  },
  "luminance": 0.27713
}

Semantic roles & 50–950 ramp

primary
#B170F8
secondary
#E3F4CF
accent
#E60078
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B170F8

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

Preview Lab → · Contrast checker → · Palette generator →

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