#B168D7#B168D7

#B168D7 is a light, vivid violet. Relative luminance 0.242; OKLCH L 64.3% C 0.174 H 312.9°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#B168D7
RGBrgb(177, 104, 215)
HSLhsl(279, 58%, 63%)
HSVhsv(279, 52%, 84%)
CMYKcmyk(17.7%, 51.6%, 0%, 15.7%)
CIE-LABlab(56.24, 48.17, -45.62)
CIE-LCHlch(56.24, 66.34, 316.55°)
OKLaboklab(64.29% 0.1182 -0.1274)
OKLCHoklch(64.29% 0.174 312.9)
XYZxyz(35.3454, 24.1549, 67.0772)
Luminance0.2415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B168D7 #8ED768
analogous
#7968D7 #B168D7 #D768C6
triadic
#B168D7 #D7B168 #68D7B1
tetradic
#B168D7 #D77968 #8ED768 #68C6D7
square
#B168D7 #D77968 #8ED768 #68C6D7
split-complementary
#B168D7 #C6D768 #68D779
monochromatic
#74299B #9838CA #B168D7 #CA98E4 #E3C9F1

Accessibility & contrast

On white

3.60
#B168D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#B168D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B168D7
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B168D7#FFFFFF#000000##000000
##B168D71.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D83DB
Deuteranopia (green-blind)
#6389D4
Tritanopia (blue-blind)
#AD7A96
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b168d7;
/* rgb */ color: rgb(177, 104, 215);
/* oklch */ color: oklch(64.3% 0.174 312.9);
Tailwind
colors: {
  custom: {
    50: '#cb95e4',
    500: '#b168d7',
    950: '#000000',
  },
}
SCSS
$custom: #b168d7;
$custom-light: #cb95e4;
$custom-dark: #000000;
JSON
{
  "hex": "#b168d7",
  "rgb": {
    "r": 177,
    "g": 104,
    "b": 215
  },
  "hsl": {
    "h": 279.459,
    "s": 58.115,
    "l": 62.549
  },
  "oklch": {
    "l": 0.6429,
    "c": 0.17374,
    "h": 312.9
  },
  "luminance": 0.24154
}

Semantic roles & 50–950 ramp

primary
#B168D7
secondary
#C7E2B9
accent
#C62059
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140D15
muted
#827E84

Preview Lab

Preview with #B168D7

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

Preview Lab → · Contrast checker → · Palette generator →

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