#B266EA#B266EA

#B266EA is a light, vivid violet. Relative luminance 0.249; OKLCH L 65.2% C 0.198 H 308.5°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B266EA
RGBrgb(178, 102, 234)
HSLhsl(275, 76%, 66%)
HSVhsv(275, 56%, 92%)
CMYKcmyk(23.9%, 56.4%, 0%, 8.2%)
CIE-LABlab(56.99, 53.62, -55.11)
CIE-LCHlch(56.99, 76.89, 314.21°)
OKLaboklab(65.19% 0.1231 -0.155)
OKLCHoklch(65.19% 0.198 308.5)
XYZxyz(37.9598, 24.9088, 80.6341)
Luminance0.2491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B266EA #9EEA66
analogous
#7066EA #B266EA #EA66E0
triadic
#B266EA #EAB266 #66EAB2
tetradic
#B266EA #EA7066 #9EEA66 #66E0EA
square
#B266EA #EA7066 #9EEA66 #66E0EA
split-complementary
#B266EA #E0EA66 #66EA70
monochromatic
#771ABC #9730E3 #B266EA #CD9CF1 #E8D2F9

Accessibility & contrast

On white

3.51
#B266EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#B266EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B266EA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B266EA#FFFFFF#000000##000000
##B266EA1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3886EE
Deuteranopia (green-blind)
#558AE7
Tritanopia (blue-blind)
#AA7E9E
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b266ea;
/* rgb */ color: rgb(178, 102, 234);
/* oklch */ color: oklch(65.2% 0.198 308.5);
Tailwind
colors: {
  custom: {
    50: '#cc95f1',
    500: '#b266ea',
    950: '#000000',
  },
}
SCSS
$custom: #b266ea;
$custom-light: #cc95f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b266ea",
  "rgb": {
    "r": 178,
    "g": 102,
    "b": 234
  },
  "hsl": {
    "h": 274.545,
    "s": 75.862,
    "l": 65.882
  },
  "oklch": {
    "l": 0.65193,
    "c": 0.19797,
    "h": 308.5
  },
  "luminance": 0.24908
}

Semantic roles & 50–950 ramp

primary
#B266EA
secondary
#D3ECC0
accent
#D80D63
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B266EA

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

Preview Lab → · Contrast checker → · Palette generator →

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