#B166D7#B166D7

#B166D7 is a light, vivid violet. Relative luminance 0.238; OKLCH L 64.0% C 0.177 H 313.1°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#B166D7
RGBrgb(177, 102, 215)
HSLhsl(280, 59%, 62%)
HSVhsv(280, 53%, 84%)
CMYKcmyk(17.7%, 52.6%, 0%, 15.7%)
CIE-LABlab(55.84, 49.21, -46.25)
CIE-LCHlch(55.84, 67.54, 316.77°)
OKLaboklab(64% 0.1209 -0.1292)
OKLCHoklch(64% 0.177 313.1)
XYZxyz(35.1465, 23.7570, 67.0109)
Luminance0.2376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166D7 #8CD766
analogous
#7966D7 #B166D7 #D766C5
triadic
#B166D7 #D7B166 #66D7B1
tetradic
#B166D7 #D77966 #8CD766 #66C5D7
square
#B166D7 #D77966 #8CD766 #66C5D7
split-complementary
#B166D7 #C5D766 #66D779
monochromatic
#74289A #9835CA #B166D7 #CA97E4 #E2C7F0

Accessibility & contrast

On white

3.65
#B166D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#B166D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166D7
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166D7#FFFFFF#000000##000000
##B166D71.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A82DB
Deuteranopia (green-blind)
#6288D4
Tritanopia (blue-blind)
#AD7895
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b166d7;
/* rgb */ color: rgb(177, 102, 215);
/* oklch */ color: oklch(64.0% 0.177 313.1);
Tailwind
colors: {
  custom: {
    50: '#cb94e4',
    500: '#b166d7',
    950: '#000000',
  },
}
SCSS
$custom: #b166d7;
$custom-light: #cb94e4;
$custom-dark: #000000;
JSON
{
  "hex": "#b166d7",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 215
  },
  "hsl": {
    "h": 279.823,
    "s": 58.549,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63995,
    "c": 0.17691,
    "h": 313.1
  },
  "luminance": 0.23756
}

Semantic roles & 50–950 ramp

primary
#B166D7
secondary
#C6E1B8
accent
#C61F57
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140D15
muted
#827E84

Preview Lab

Preview with #B166D7

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

Preview Lab → · Contrast checker → · Palette generator →

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