#B168EC#B168EC

#B168EC is a light, vivid violet. Relative luminance 0.253; OKLCH L 65.5% C 0.197 H 307.3°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#B168EC
RGBrgb(177, 104, 236)
HSLhsl(273, 78%, 67%)
HSVhsv(273, 56%, 93%)
CMYKcmyk(25%, 55.9%, 0%, 7.5%)
CIE-LABlab(57.37, 52.80, -55.62)
CIE-LCHlch(57.37, 76.69, 313.51°)
OKLaboklab(65.49% 0.1195 -0.1565)
OKLCHoklch(65.49% 0.197 307.3)
XYZxyz(38.2190, 25.3043, 82.2114)
Luminance0.2530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B168EC #A3EC68
analogous
#6F68EC #B168EC #EC68E5
triadic
#B168EC #ECB168 #68ECB1
tetradic
#B168EC #EC6F68 #A3EC68 #68E5EC
square
#B168EC #EC6F68 #A3EC68 #68E5EC
split-complementary
#B168EC #E5EC68 #68EC6F
monochromatic
#7618C1 #9532E5 #B168EC #CD9EF3 #E9D5FA

Accessibility & contrast

On white

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

On black

6.06
#B168EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B168EC
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B168EC#FFFFFF#000000##000000
##B168EC1.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3987F0
Deuteranopia (green-blind)
#548AE9
Tritanopia (blue-blind)
#A881A0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b168ec;
/* rgb */ color: rgb(177, 104, 236);
/* oklch */ color: oklch(65.5% 0.197 307.3);
Tailwind
colors: {
  custom: {
    50: '#cc96f3',
    500: '#b168ec',
    950: '#000000',
  },
}
SCSS
$custom: #b168ec;
$custom-light: #cc96f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b168ec",
  "rgb": {
    "r": 177,
    "g": 104,
    "b": 236
  },
  "hsl": {
    "h": 273.182,
    "s": 77.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.65486,
    "c": 0.19692,
    "h": 307.3
  },
  "luminance": 0.25304
}

Semantic roles & 50–950 ramp

primary
#B168EC
secondary
#D6EDC3
accent
#DA0C68
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B168EC

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

Preview Lab → · Contrast checker → · Palette generator →

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