#B168EE#B168EE

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

Color values

HEX#B168EE
RGBrgb(177, 104, 238)
HSLhsl(273, 80%, 67%)
HSVhsv(273, 56%, 93%)
CMYKcmyk(25.6%, 56.3%, 0%, 6.7%)
CIE-LABlab(57.48, 53.25, -56.55)
CIE-LCHlch(57.48, 77.68, 313.28°)
OKLaboklab(65.61% 0.1195 -0.1593)
OKLCHoklch(65.61% 0.199 306.9)
XYZxyz(38.5112, 25.4212, 83.7503)
Luminance0.2542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B168EE #A5EE68
analogous
#6E68EE #B168EE #EE68E8
triadic
#B168EE #EEB168 #68EEB1
tetradic
#B168EE #EE6E68 #A5EE68 #68E8EE
square
#B168EE #EE6E68 #A5EE68 #68E8EE
split-complementary
#B168EE #E8EE68 #68EE6E
monochromatic
#7616C5 #9531E8 #B168EE #CD9FF4 #EAD6FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B168EE#FFFFFF#000000##000000
##B168EE1.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)
#3687F2
Deuteranopia (green-blind)
#538BEB
Tritanopia (blue-blind)
#A781A1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b168ee;
/* rgb */ color: rgb(177, 104, 238);
/* oklch */ color: oklch(65.6% 0.199 306.9);
Tailwind
colors: {
  custom: {
    50: '#cc96f4',
    500: '#b168ee',
    950: '#000000',
  },
}
SCSS
$custom: #b168ee;
$custom-light: #cc96f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b168ee",
  "rgb": {
    "r": 177,
    "g": 104,
    "b": 238
  },
  "hsl": {
    "h": 272.687,
    "s": 79.762,
    "l": 67.059
  },
  "oklch": {
    "l": 0.65605,
    "c": 0.19913,
    "h": 306.9
  },
  "luminance": 0.25421
}

Semantic roles & 50–950 ramp

primary
#B168EE
secondary
#D7EEC4
accent
#DC0969
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #B168EE

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

Preview Lab → · Contrast checker → · Palette generator →

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