#B166F2#B166F2

#B166F2 is a light, highly saturated violet. Relative luminance 0.253; OKLCH L 65.6% C 0.206 H 306.2°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#B166F2
RGBrgb(177, 102, 242)
HSLhsl(272, 84%, 67%)
HSVhsv(272, 58%, 95%)
CMYKcmyk(26.9%, 57.9%, 0%, 5.1%)
CIE-LABlab(57.33, 55.18, -59.03)
CIE-LCHlch(57.33, 80.80, 313.07°)
OKLaboklab(65.57% 0.122 -0.1665)
OKLCHoklch(65.57% 0.206 306.2)
XYZxyz(38.9065, 25.2610, 86.8134)
Luminance0.2526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166F2 #A7F266
analogous
#6B66F2 #B166F2 #F266ED
triadic
#B166F2 #F2B166 #66F2B1
tetradic
#B166F2 #F26B66 #A7F266 #66EDF2
square
#B166F2 #F26B66 #A7F266 #66EDF2
split-complementary
#B166F2 #EDF266 #66F26B
monochromatic
#7511CC #942EED #B166F2 #CE9EF7 #EBD7FC

Accessibility & contrast

On white

3.47
#B166F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#B166F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166F2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166F2#FFFFFF#000000##000000
##B166F21.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C87F7
Deuteranopia (green-blind)
#4D8AEF
Tritanopia (blue-blind)
#A681A3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b166f2;
/* rgb */ color: rgb(177, 102, 242);
/* oklch */ color: oklch(65.6% 0.206 306.2);
Tailwind
colors: {
  custom: {
    50: '#cc95f7',
    500: '#b166f2',
    950: '#000000',
  },
}
SCSS
$custom: #b166f2;
$custom-light: #cc95f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b166f2",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 242
  },
  "hsl": {
    "h": 272.143,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.65565,
    "c": 0.20644,
    "h": 306.2
  },
  "luminance": 0.25261
}

Semantic roles & 50–950 ramp

primary
#B166F2
secondary
#D8F0C4
accent
#E1056B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166F2

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

Preview Lab → · Contrast checker → · Palette generator →

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