#B168FE#B168FE

#B168FE is a light, highly saturated violet. Relative luminance 0.264; OKLCH L 66.6% C 0.217 H 303.5°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#B168FE
RGBrgb(177, 104, 254)
HSLhsl(269, 99%, 70%)
HSVhsv(269, 59%, 100%)
CMYKcmyk(30.3%, 59.1%, 0%, 0.4%)
CIE-LABlab(58.42, 56.92, -63.93)
CIE-LCHlch(58.42, 85.60, 311.68°)
OKLaboklab(66.59% 0.1195 -0.1809)
OKLCHoklch(66.59% 0.217 303.5)
XYZxyz(40.9671, 26.4036, 96.6849)
Luminance0.2640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B168FE #B5FE68
analogous
#686AFE #B168FE #FC68FE
triadic
#B168FE #FEB168 #68FEB1
tetradic
#B168FE #FE686A #B5FE68 #68FEFC
square
#B168FE #FE686A #B5FE68 #68FEFC
split-complementary
#B168FE #FEFC68 #6AFE68
monochromatic
#7302EA #922BFE #B168FE #D0A5FE #EFE1FF

Accessibility & contrast

On white

3.34
#B168FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#B168FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B168FE
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B168FE#FFFFFF#000000##000000
##B168FE1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#198BFF
Deuteranopia (green-blind)
#428CFB
Tritanopia (blue-blind)
#A387A9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #b168fe;
/* rgb */ color: rgb(177, 104, 254);
/* oklch */ color: oklch(66.6% 0.217 303.5);
Tailwind
colors: {
  custom: {
    50: '#cd96ff',
    500: '#b168fe',
    950: '#000000',
  },
}
SCSS
$custom: #b168fe;
$custom-light: #cd96ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b168fe",
  "rgb": {
    "r": 177,
    "g": 104,
    "b": 254
  },
  "hsl": {
    "h": 269.2,
    "s": 98.684,
    "l": 70.196
  },
  "oklch": {
    "l": 0.66588,
    "c": 0.21683,
    "h": 303.5
  },
  "luminance": 0.26403
}

Semantic roles & 50–950 ramp

primary
#B168FE
secondary
#E1F6CC
accent
#E60076
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #B168FE

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

Preview Lab → · Contrast checker → · Palette generator →

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