#B168DC#B168DC

#B168DC is a light, vivid violet. Relative luminance 0.244; OKLCH L 64.6% C 0.179 H 311.4°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#B168DC
RGBrgb(177, 104, 220)
HSLhsl(278, 62%, 64%)
HSVhsv(278, 53%, 86%)
CMYKcmyk(19.5%, 52.7%, 0%, 13.7%)
CIE-LABlab(56.50, 49.25, -48.03)
CIE-LCHlch(56.50, 68.79, 315.72°)
OKLaboklab(64.57% 0.1186 -0.1344)
OKLCHoklch(64.57% 0.179 311.4)
XYZxyz(35.9977, 24.4158, 70.5127)
Luminance0.2442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B168DC #93DC68
analogous
#7768DC #B168DC #DC68CD
triadic
#B168DC #DCB168 #68DCB1
tetradic
#B168DC #DC7768 #93DC68 #68CDDC
square
#B168DC #DC7768 #93DC68 #68CDDC
split-complementary
#B168DC #CDDC68 #68DC77
monochromatic
#7526A4 #9736D0 #B168DC #CB9AE8 #E4CBF3

Accessibility & contrast

On white

3.57
#B168DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#B168DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B168DC
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B168DC#FFFFFF#000000##000000
##B168DC1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4984E0
Deuteranopia (green-blind)
#6089D9
Tritanopia (blue-blind)
#AC7C98
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b168dc;
/* rgb */ color: rgb(177, 104, 220);
/* oklch */ color: oklch(64.6% 0.179 311.4);
Tailwind
colors: {
  custom: {
    50: '#cb96e7',
    500: '#b168dc',
    950: '#000000',
  },
}
SCSS
$custom: #b168dc;
$custom-light: #cb96e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b168dc",
  "rgb": {
    "r": 177,
    "g": 104,
    "b": 220
  },
  "hsl": {
    "h": 277.759,
    "s": 62.366,
    "l": 63.529
  },
  "oklch": {
    "l": 0.64565,
    "c": 0.17924,
    "h": 311.4
  },
  "luminance": 0.24415
}

Semantic roles & 50–950 ramp

primary
#B168DC
secondary
#CBE4BB
accent
#CA1B5C
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B168DC

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

Preview Lab → · Contrast checker → · Palette generator →

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