#B266F2#B266F2

#B266F2 is a light, highly saturated violet. Relative luminance 0.254; OKLCH L 65.7% C 0.207 H 306.6°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#B266F2
RGBrgb(178, 102, 242)
HSLhsl(273, 84%, 67%)
HSVhsv(273, 58%, 95%)
CMYKcmyk(26.4%, 57.9%, 0%, 5.1%)
CIE-LABlab(57.44, 55.41, -58.84)
CIE-LCHlch(57.44, 80.82, 313.28°)
OKLaboklab(65.67% 0.1233 -0.1659)
OKLCHoklch(65.67% 0.207 306.6)
XYZxyz(39.1351, 25.3789, 86.8241)
Luminance0.2538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B266F2 #A6F266
analogous
#6C66F2 #B266F2 #F266EC
triadic
#B266F2 #F2B266 #66F2B2
tetradic
#B266F2 #F26C66 #A6F266 #66ECF2
square
#B266F2 #F26C66 #A6F266 #66ECF2
split-complementary
#B266F2 #ECF266 #66F26C
monochromatic
#7711CC #962EED #B266F2 #CE9EF7 #EBD7FC

Accessibility & contrast

On white

3.46
#B266F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#B266F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B266F2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B266F2#FFFFFF#000000##000000
##B266F21.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D87F7
Deuteranopia (green-blind)
#4E8AEF
Tritanopia (blue-blind)
#A881A3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b266f2;
/* rgb */ color: rgb(178, 102, 242);
/* oklch */ color: oklch(65.7% 0.207 306.6);
Tailwind
colors: {
  custom: {
    50: '#cd95f7',
    500: '#b266f2',
    950: '#000000',
  },
}
SCSS
$custom: #b266f2;
$custom-light: #cd95f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b266f2",
  "rgb": {
    "r": 178,
    "g": 102,
    "b": 242
  },
  "hsl": {
    "h": 272.571,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.65674,
    "c": 0.20671,
    "h": 306.6
  },
  "luminance": 0.25379
}

Semantic roles & 50–950 ramp

primary
#B266F2
secondary
#D8F0C4
accent
#E10569
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #B266F2

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

Preview Lab → · Contrast checker → · Palette generator →

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