#B166E7#B166E7

#B166E7 is a light, vivid violet. Relative luminance 0.246; OKLCH L 64.9% C 0.194 H 308.8°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#B166E7
RGBrgb(177, 102, 231)
HSLhsl(275, 73%, 65%)
HSVhsv(275, 56%, 91%)
CMYKcmyk(23.4%, 55.8%, 0%, 9.4%)
CIE-LABlab(56.70, 52.70, -53.89)
CIE-LCHlch(56.70, 75.38, 314.36°)
OKLaboklab(64.91% 0.1218 -0.1515)
OKLCHoklch(64.91% 0.194 308.8)
XYZxyz(37.3038, 24.6199, 78.3728)
Luminance0.2462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166E7 #9CE766
analogous
#7166E7 #B166E7 #E766DC
triadic
#B166E7 #E7B166 #66E7B1
tetradic
#B166E7 #E77166 #9CE766 #66DCE7
square
#B166E7 #E77166 #9CE766 #66DCE7
split-complementary
#B166E7 #DCE766 #66E771
monochromatic
#761DB6 #9631DF #B166E7 #CC9BEF #E7D0F8

Accessibility & contrast

On white

3.55
#B166E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#B166E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166E7
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166E7#FFFFFF#000000##000000
##B166E71.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B85EB
Deuteranopia (green-blind)
#5689E4
Tritanopia (blue-blind)
#A97E9D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b166e7;
/* rgb */ color: rgb(177, 102, 231);
/* oklch */ color: oklch(64.9% 0.194 308.8);
Tailwind
colors: {
  custom: {
    50: '#cb94ef',
    500: '#b166e7',
    950: '#000000',
  },
}
SCSS
$custom: #b166e7;
$custom-light: #cb94ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b166e7",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 231
  },
  "hsl": {
    "h": 274.884,
    "s": 72.881,
    "l": 65.294
  },
  "oklch": {
    "l": 0.64906,
    "c": 0.19437,
    "h": 308.8
  },
  "luminance": 0.24619
}

Semantic roles & 50–950 ramp

primary
#B166E7
secondary
#D1EABF
accent
#D51163
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B166E7

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

Preview Lab → · Contrast checker → · Palette generator →

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