#B166ED#B166ED

#B166ED is a light, highly saturated violet. Relative luminance 0.250; OKLCH L 65.3% C 0.201 H 307.4°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#B166ED
RGBrgb(177, 102, 237)
HSLhsl(273, 79%, 66%)
HSVhsv(273, 57%, 93%)
CMYKcmyk(25.3%, 57%, 0%, 7.1%)
CIE-LABlab(57.04, 54.05, -56.70)
CIE-LCHlch(57.04, 78.33, 313.63°)
OKLaboklab(65.26% 0.122 -0.1597)
OKLCHoklch(65.26% 0.201 307.4)
XYZxyz(38.1658, 24.9647, 82.9124)
Luminance0.2496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B166ED #A2ED66
analogous
#6E66ED #B166ED #ED66E6
triadic
#B166ED #EDB166 #66EDB1
tetradic
#B166ED #ED6E66 #A2ED66 #66E6ED
square
#B166ED #ED6E66 #A2ED66 #66E6ED
split-complementary
#B166ED #E6ED66 #66ED6E
monochromatic
#7617C2 #952FE7 #B166ED #CD9DF3 #E9D4FA

Accessibility & contrast

On white

3.50
#B166ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#B166ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B166ED
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B166ED#FFFFFF#000000##000000
##B166ED1.003.505.995.99
#FFFFFF3.501.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3386F1
Deuteranopia (green-blind)
#518AEA
Tritanopia (blue-blind)
#A880A0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b166ed;
/* rgb */ color: rgb(177, 102, 237);
/* oklch */ color: oklch(65.3% 0.201 307.4);
Tailwind
colors: {
  custom: {
    50: '#cc95f3',
    500: '#b166ed',
    950: '#000000',
  },
}
SCSS
$custom: #b166ed;
$custom-light: #cc95f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b166ed",
  "rgb": {
    "r": 177,
    "g": 102,
    "b": 237
  },
  "hsl": {
    "h": 273.333,
    "s": 78.947,
    "l": 66.471
  },
  "oklch": {
    "l": 0.65262,
    "c": 0.20096,
    "h": 307.4
  },
  "luminance": 0.24964
}

Semantic roles & 50–950 ramp

primary
#B166ED
secondary
#D5EDC2
accent
#DB0A67
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B166ED

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

Preview Lab → · Contrast checker → · Palette generator →

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