#B268EB#B268EB

#B268EB is a light, vivid violet. Relative luminance 0.254; OKLCH L 65.5% C 0.196 H 308.0°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#B268EB
RGBrgb(178, 104, 235)
HSLhsl(274, 77%, 66%)
HSVhsv(274, 56%, 92%)
CMYKcmyk(24.3%, 55.7%, 0%, 7.8%)
CIE-LABlab(57.43, 52.82, -54.96)
CIE-LCHlch(57.43, 76.22, 313.86°)
OKLaboklab(65.54% 0.1207 -0.1546)
OKLCHoklch(65.54% 0.196 308)
XYZxyz(38.3028, 25.3643, 81.4591)
Luminance0.2536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B268EB #A1EB68
analogous
#7168EB #B268EB #EB68E3
triadic
#B268EB #EBB268 #68EBB2
tetradic
#B268EB #EB7168 #A1EB68 #68E3EB
square
#B268EB #EB7168 #A1EB68 #68E3EB
split-complementary
#B268EB #E3EB68 #68EB71
monochromatic
#7719BF #9632E4 #B268EB #CE9EF2 #E9D4F9

Accessibility & contrast

On white

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

On black

6.07
#B268EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B268EB
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B268EB#FFFFFF#000000##000000
##B268EB1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B87EF
Deuteranopia (green-blind)
#568BE8
Tritanopia (blue-blind)
#AA80A0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b268eb;
/* rgb */ color: rgb(178, 104, 235);
/* oklch */ color: oklch(65.5% 0.196 308.0);
Tailwind
colors: {
  custom: {
    50: '#cc96f2',
    500: '#b268eb',
    950: '#000000',
  },
}
SCSS
$custom: #b268eb;
$custom-light: #cc96f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b268eb",
  "rgb": {
    "r": 178,
    "g": 104,
    "b": 235
  },
  "hsl": {
    "h": 273.893,
    "s": 76.608,
    "l": 66.471
  },
  "oklch": {
    "l": 0.65535,
    "c": 0.19611,
    "h": 308
  },
  "luminance": 0.25364
}

Semantic roles & 50–950 ramp

primary
#B268EB
secondary
#D5EDC2
accent
#D90D66
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B268EB

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

Preview Lab → · Contrast checker → · Palette generator →

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