#B266DF#B266DF

#B266DF is a light, vivid violet. Relative luminance 0.243; OKLCH L 64.6% C 0.186 H 311.3°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B266DF
RGBrgb(178, 102, 223)
HSLhsl(278, 65%, 64%)
HSVhsv(278, 54%, 87%)
CMYKcmyk(20.2%, 54.3%, 0%, 12.5%)
CIE-LABlab(56.38, 51.20, -49.90)
CIE-LCHlch(56.38, 71.49, 315.73°)
OKLaboklab(64.55% 0.1227 -0.1398)
OKLCHoklch(64.55% 0.186 311.3)
XYZxyz(36.4283, 24.2962, 72.5684)
Luminance0.2429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B266DF #93DF66
analogous
#7566DF #B266DF #DF66CF
triadic
#B266DF #DFB266 #66DFB2
tetradic
#B266DF #DF7566 #93DF66 #66CFDF
square
#B266DF #DF7566 #93DF66 #66CFDF
split-complementary
#B266DF #CFDF66 #66DF75
monochromatic
#7623A8 #9933D4 #B266DF #CB99EA #E5CBF4

Accessibility & contrast

On white

3.58
#B266DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#B266DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B266DF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B266DF#FFFFFF#000000##000000
##B266DF1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4383E3
Deuteranopia (green-blind)
#5D89DC
Tritanopia (blue-blind)
#AD7B99
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b266df;
/* rgb */ color: rgb(178, 102, 223);
/* oklch */ color: oklch(64.6% 0.186 311.3);
Tailwind
colors: {
  custom: {
    50: '#cc94e9',
    500: '#b266df',
    950: '#000000',
  },
}
SCSS
$custom: #b266df;
$custom-light: #cc94e9;
$custom-dark: #000000;
JSON
{
  "hex": "#b266df",
  "rgb": {
    "r": 178,
    "g": 102,
    "b": 223
  },
  "hsl": {
    "h": 277.686,
    "s": 65.405,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64555,
    "c": 0.18598,
    "h": 311.3
  },
  "luminance": 0.24295
}

Semantic roles & 50–950 ramp

primary
#B266DF
secondary
#CBE6BB
accent
#CD185C
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B266DF

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

Preview Lab → · Contrast checker → · Palette generator →

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