#B266EC#B266EC

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

Color values

HEX#B266EC
RGBrgb(178, 102, 236)
HSLhsl(274, 78%, 66%)
HSVhsv(274, 57%, 93%)
CMYKcmyk(24.6%, 56.8%, 0%, 7.5%)
CIE-LABlab(57.10, 54.06, -56.04)
CIE-LCHlch(57.10, 77.87, 313.97°)
OKLaboklab(65.31% 0.1232 -0.1578)
OKLCHoklch(65.31% 0.2 308)
XYZxyz(38.2487, 25.0244, 82.1558)
Luminance0.2502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B266EC #A0EC66
analogous
#6F66EC #B266EC #EC66E3
triadic
#B266EC #ECB266 #66ECB2
tetradic
#B266EC #EC6F66 #A0EC66 #66E3EC
square
#B266EC #EC6F66 #A0EC66 #66E3EC
split-complementary
#B266EC #E3EC66 #66EC6F
monochromatic
#7718C0 #9730E5 #B266EC #CD9CF3 #E9D3FA

Accessibility & contrast

On white

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

On black

6.00
#B266EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B266EC
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B266EC#FFFFFF#000000##000000
##B266EC1.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3586F0
Deuteranopia (green-blind)
#538AE9
Tritanopia (blue-blind)
#A97F9F
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b266ec;
/* rgb */ color: rgb(178, 102, 236);
/* oklch */ color: oklch(65.3% 0.200 308.0);
Tailwind
colors: {
  custom: {
    50: '#cc95f3',
    500: '#b266ec',
    950: '#000000',
  },
}
SCSS
$custom: #b266ec;
$custom-light: #cc95f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b266ec",
  "rgb": {
    "r": 178,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 274.03,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.65312,
    "c": 0.20015,
    "h": 308
  },
  "luminance": 0.25024
}

Semantic roles & 50–950 ramp

primary
#B266EC
secondary
#D4EDC1
accent
#DA0B65
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B266EC

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

Preview Lab → · Contrast checker → · Palette generator →

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