#B170EE#B170EE

#B170EE is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.8% C 0.187 H 305.8°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#B170EE
RGBrgb(177, 112, 238)
HSLhsl(271, 79%, 69%)
HSVhsv(271, 53%, 93%)
CMYKcmyk(25.6%, 52.9%, 0%, 6.7%)
CIE-LABlab(59.07, 49.07, -54.01)
CIE-LCHlch(59.07, 72.98, 312.25°)
OKLaboklab(66.77% 0.1094 -0.1519)
OKLCHoklch(66.77% 0.187 305.8)
XYZxyz(39.3550, 27.1088, 84.0316)
Luminance0.2711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170EE #ADEE70
analogous
#7270EE #B170EE #EE70EC
triadic
#B170EE #EEB170 #70EEB1
tetradic
#B170EE #EE7270 #ADEE70 #70ECEE
square
#B170EE #EE7270 #ADEE70 #70ECEE
split-complementary
#B170EE #ECEE70 #70EE72
monochromatic
#7518CB #9339E7 #B170EE #CFA7F5 #EDDDFB

Accessibility & contrast

On white

3.27
#B170EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#B170EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170EE
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170EE#FFFFFF#000000##000000
##B170EE1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#478CF2
Deuteranopia (green-blind)
#5C8FEB
Tritanopia (blue-blind)
#A787A5
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b170ee;
/* rgb */ color: rgb(177, 112, 238);
/* oklch */ color: oklch(66.8% 0.187 305.8);
Tailwind
colors: {
  custom: {
    50: '#cb9bf4',
    500: '#b170ee',
    950: '#000000',
  },
}
SCSS
$custom: #b170ee;
$custom-light: #cb9bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b170ee",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 238
  },
  "hsl": {
    "h": 270.952,
    "s": 78.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.66775,
    "c": 0.18717,
    "h": 305.8
  },
  "luminance": 0.27108
}

Semantic roles & 50–950 ramp

primary
#B170EE
secondary
#DCF0CA
accent
#DB0A6F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B170EE

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

Preview Lab → · Contrast checker → · Palette generator →

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