#B268EC#B268EC

#B268EC is a light, vivid violet. Relative luminance 0.254; OKLCH L 65.6% C 0.197 H 307.7°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#B268EC
RGBrgb(178, 104, 236)
HSLhsl(274, 78%, 67%)
HSVhsv(274, 56%, 93%)
CMYKcmyk(24.6%, 55.9%, 0%, 7.5%)
CIE-LABlab(57.48, 53.04, -55.43)
CIE-LCHlch(57.48, 76.72, 313.74°)
OKLaboklab(65.59% 0.1207 -0.156)
OKLCHoklch(65.59% 0.197 307.7)
XYZxyz(38.4477, 25.4222, 82.2222)
Luminance0.2542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B268EC #A2EC68
analogous
#7068EC #B268EC #EC68E4
triadic
#B268EC #ECB268 #68ECB2
tetradic
#B268EC #EC7068 #A2EC68 #68E4EC
square
#B268EC #EC7068 #A2EC68 #68E4EC
split-complementary
#B268EC #E4EC68 #68EC70
monochromatic
#7718C1 #9632E5 #B268EC #CE9EF3 #E9D5FA

Accessibility & contrast

On white

3.45
#B268EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##B268EC#FFFFFF#000000##000000
##B268EC1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A87F0
Deuteranopia (green-blind)
#558BE9
Tritanopia (blue-blind)
#A981A0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b268ec;
/* rgb */ color: rgb(178, 104, 236);
/* oklch */ color: oklch(65.6% 0.197 307.7);
Tailwind
colors: {
  custom: {
    50: '#cc96f3',
    500: '#b268ec',
    950: '#000000',
  },
}
SCSS
$custom: #b268ec;
$custom-light: #cc96f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b268ec",
  "rgb": {
    "r": 178,
    "g": 104,
    "b": 236
  },
  "hsl": {
    "h": 273.636,
    "s": 77.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.65594,
    "c": 0.19721,
    "h": 307.7
  },
  "luminance": 0.25422
}

Semantic roles & 50–950 ramp

primary
#B268EC
secondary
#D5EDC3
accent
#DA0C66
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B268EC

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

Preview Lab → · Contrast checker → · Palette generator →

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