#B168F7#B168F7

#B168F7 is a light, highly saturated violet. Relative luminance 0.260; OKLCH L 66.2% C 0.209 H 304.9°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#B168F7
RGBrgb(177, 104, 247)
HSLhsl(271, 90%, 69%)
HSVhsv(271, 58%, 97%)
CMYKcmyk(28.3%, 57.9%, 0%, 3.1%)
CIE-LABlab(58.00, 55.30, -60.72)
CIE-LCHlch(58.00, 82.13, 312.33°)
OKLaboklab(66.15% 0.1196 -0.1715)
OKLCHoklch(66.15% 0.209 304.9)
XYZxyz(39.8666, 25.9634, 90.8888)
Luminance0.2596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B168F7 #AEF768
analogous
#6A68F7 #B168F7 #F768F6
triadic
#B168F7 #F7B168 #68F7B1
tetradic
#B168F7 #F76A68 #AEF768 #68F6F7
square
#B168F7 #F76A68 #AEF768 #68F6F7
split-complementary
#B168F7 #F6F768 #68F76A
monochromatic
#740CD9 #932EF4 #B168F7 #CFA2FA #EDDCFD

Accessibility & contrast

On white

3.39
#B168F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#B168F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B168F7
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B168F7#FFFFFF#000000##000000
##B168F71.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2989FC
Deuteranopia (green-blind)
#4A8CF4
Tritanopia (blue-blind)
#A584A6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b168f7;
/* rgb */ color: rgb(177, 104, 247);
/* oklch */ color: oklch(66.2% 0.209 304.9);
Tailwind
colors: {
  custom: {
    50: '#cc96fa',
    500: '#b168f7',
    950: '#000000',
  },
}
SCSS
$custom: #b168f7;
$custom-light: #cc96fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b168f7",
  "rgb": {
    "r": 177,
    "g": 104,
    "b": 247
  },
  "hsl": {
    "h": 270.629,
    "s": 89.937,
    "l": 68.824
  },
  "oklch": {
    "l": 0.66151,
    "c": 0.20909,
    "h": 304.9
  },
  "luminance": 0.25963
}

Semantic roles & 50–950 ramp

primary
#B168F7
secondary
#DDF3C8
accent
#E60070
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B168F7

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

Preview Lab → · Contrast checker → · Palette generator →

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