#B170E8#B170E8

#B170E8 is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.4% C 0.180 H 307.2°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#B170E8
RGBrgb(177, 112, 232)
HSLhsl(273, 72%, 67%)
HSVhsv(273, 52%, 91%)
CMYKcmyk(23.7%, 51.7%, 0%, 9%)
CIE-LABlab(58.75, 47.70, -51.18)
CIE-LCHlch(58.75, 69.96, 312.98°)
OKLaboklab(66.43% 0.109 -0.1436)
OKLCHoklch(66.43% 0.18 307.2)
XYZxyz(38.4882, 26.7621, 79.4663)
Luminance0.2676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170E8 #A7E870
analogous
#7570E8 #B170E8 #E870E3
triadic
#B170E8 #E8B170 #70E8B1
tetradic
#B170E8 #E87570 #A7E870 #70E3E8
square
#B170E8 #E87570 #A7E870 #70E3E8
split-complementary
#B170E8 #E3E870 #70E875
monochromatic
#751FBF #943BE0 #B170E8 #CEA5F0 #EBD9F9

Accessibility & contrast

On white

3.31
#B170E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#B170E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170E8
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170E8#FFFFFF#000000##000000
##B170E81.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8BEC
Deuteranopia (green-blind)
#608EE5
Tritanopia (blue-blind)
#A985A2
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b170e8;
/* rgb */ color: rgb(177, 112, 232);
/* oklch */ color: oklch(66.4% 0.180 307.2);
Tailwind
colors: {
  custom: {
    50: '#cb9bf0',
    500: '#b170e8',
    950: '#000000',
  },
}
SCSS
$custom: #b170e8;
$custom-light: #cb9bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#b170e8",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 232
  },
  "hsl": {
    "h": 272.5,
    "s": 72.289,
    "l": 67.451
  },
  "oklch": {
    "l": 0.66434,
    "c": 0.18028,
    "h": 307.2
  },
  "luminance": 0.26762
}

Semantic roles & 50–950 ramp

primary
#B170E8
secondary
#D8EDC7
accent
#D4116B
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B170E8

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

Preview Lab → · Contrast checker → · Palette generator →

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