#B170EF#B170EF

#B170EF is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.8% C 0.188 H 305.5°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#B170EF
RGBrgb(177, 112, 239)
HSLhsl(271, 80%, 69%)
HSVhsv(271, 53%, 94%)
CMYKcmyk(25.9%, 53.1%, 0%, 6.3%)
CIE-LABlab(59.13, 49.30, -54.48)
CIE-LCHlch(59.13, 73.48, 312.14°)
OKLaboklab(66.83% 0.1095 -0.1532)
OKLCHoklch(66.83% 0.188 305.5)
XYZxyz(39.5023, 27.1677, 84.8075)
Luminance0.2717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170EF #AEEF70
analogous
#7270EF #B170EF #EF70ED
triadic
#B170EF #EFB170 #70EFB1
tetradic
#B170EF #EF7270 #AEEF70 #70EDEF
square
#B170EF #EF7270 #AEEF70 #70EDEF
split-complementary
#B170EF #EDEF70 #70EF72
monochromatic
#7417CE #9339E9 #B170EF #CFA7F5 #EDDEFB

Accessibility & contrast

On white

3.26
#B170EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#B170EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170EF
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170EF#FFFFFF#000000##000000
##B170EF1.003.266.436.43
#FFFFFF3.261.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#468CF3
Deuteranopia (green-blind)
#5B8FEC
Tritanopia (blue-blind)
#A787A5
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b170ef;
/* rgb */ color: rgb(177, 112, 239);
/* oklch */ color: oklch(66.8% 0.188 305.5);
Tailwind
colors: {
  custom: {
    50: '#cb9bf5',
    500: '#b170ef',
    950: '#000000',
  },
}
SCSS
$custom: #b170ef;
$custom-light: #cb9bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#b170ef",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 239
  },
  "hsl": {
    "h": 270.709,
    "s": 79.874,
    "l": 68.824
  },
  "oklch": {
    "l": 0.66833,
    "c": 0.18832,
    "h": 305.5
  },
  "luminance": 0.27167
}

Semantic roles & 50–950 ramp

primary
#B170EF
secondary
#DDF0CB
accent
#DC0970
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #B170EF

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

Preview Lab → · Contrast checker → · Palette generator →

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