#B266EB#B266EB

#B266EB is a light, vivid violet. Relative luminance 0.250; OKLCH L 65.3% C 0.199 H 308.2°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#B266EB
RGBrgb(178, 102, 235)
HSLhsl(274, 77%, 66%)
HSVhsv(274, 57%, 92%)
CMYKcmyk(24.3%, 56.6%, 0%, 7.8%)
CIE-LABlab(57.04, 53.84, -55.58)
CIE-LCHlch(57.04, 77.38, 314.09°)
OKLaboklab(65.25% 0.1232 -0.1564)
OKLCHoklch(65.25% 0.199 308.2)
XYZxyz(38.1039, 24.9664, 81.3928)
Luminance0.2497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B266EB #9FEB66
analogous
#6F66EB #B266EB #EB66E1
triadic
#B266EB #EBB266 #66EBB2
tetradic
#B266EB #EB6F66 #9FEB66 #66E1EB
square
#B266EB #EB6F66 #9FEB66 #66E1EB
split-complementary
#B266EB #E1EB66 #66EB6F
monochromatic
#7719BE #9730E4 #B266EB #CD9CF2 #E8D2F9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B266EB#FFFFFF#000000##000000
##B266EB1.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)
#3686EF
Deuteranopia (green-blind)
#548AE8
Tritanopia (blue-blind)
#AA7F9F
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b266eb;
/* rgb */ color: rgb(178, 102, 235);
/* oklch */ color: oklch(65.3% 0.199 308.2);
Tailwind
colors: {
  custom: {
    50: '#cc95f2',
    500: '#b266eb',
    950: '#000000',
  },
}
SCSS
$custom: #b266eb;
$custom-light: #cc95f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b266eb",
  "rgb": {
    "r": 178,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 274.286,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.65252,
    "c": 0.19906,
    "h": 308.2
  },
  "luminance": 0.24966
}

Semantic roles & 50–950 ramp

primary
#B266EB
secondary
#D3ECC1
accent
#D90C64
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B266EB

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

Preview Lab → · Contrast checker → · Palette generator →

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