#B170EA#B170EA

#B170EA is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.5% C 0.183 H 306.7°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#B170EA
RGBrgb(177, 112, 234)
HSLhsl(272, 74%, 68%)
HSVhsv(272, 52%, 92%)
CMYKcmyk(24.4%, 52.1%, 0%, 8.2%)
CIE-LABlab(58.86, 48.16, -52.13)
CIE-LCHlch(58.86, 70.97, 312.73°)
OKLaboklab(66.55% 0.1091 -0.1464)
OKLCHoklch(66.55% 0.183 306.7)
XYZxyz(38.7739, 26.8763, 80.9710)
Luminance0.2688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170EA #A9EA70
analogous
#7470EA #B170EA #EA70E6
triadic
#B170EA #EAB170 #70EAB1
tetradic
#B170EA #EA7470 #A9EA70 #70E6EA
square
#B170EA #EA7470 #A9EA70 #70E6EA
split-complementary
#B170EA #E6EA70 #70EA74
monochromatic
#751DC3 #943BE2 #B170EA #CEA5F2 #EBDBFA

Accessibility & contrast

On white

3.29
#B170EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#B170EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170EA
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170EA#FFFFFF#000000##000000
##B170EA1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8BEE
Deuteranopia (green-blind)
#5F8EE7
Tritanopia (blue-blind)
#A886A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b170ea;
/* rgb */ color: rgb(177, 112, 234);
/* oklch */ color: oklch(66.5% 0.183 306.7);
Tailwind
colors: {
  custom: {
    50: '#cb9bf1',
    500: '#b170ea',
    950: '#000000',
  },
}
SCSS
$custom: #b170ea;
$custom-light: #cb9bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b170ea",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 234
  },
  "hsl": {
    "h": 271.967,
    "s": 74.39,
    "l": 67.843
  },
  "oklch": {
    "l": 0.66547,
    "c": 0.18258,
    "h": 306.7
  },
  "luminance": 0.26876
}

Semantic roles & 50–950 ramp

primary
#B170EA
secondary
#DAEEC8
accent
#D70F6C
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B170EA

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

Preview Lab → · Contrast checker → · Palette generator →

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