#B168F5#B168F5

#B168F5 is a light, highly saturated violet. Relative luminance 0.258; OKLCH L 66.0% C 0.207 H 305.3°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#B168F5
RGBrgb(177, 104, 245)
HSLhsl(271, 88%, 68%)
HSVhsv(271, 58%, 96%)
CMYKcmyk(27.8%, 57.6%, 0%, 3.9%)
CIE-LABlab(57.89, 54.84, -59.80)
CIE-LCHlch(57.89, 81.14, 312.52°)
OKLaboklab(66.03% 0.1196 -0.1688)
OKLCHoklch(66.03% 0.207 305.3)
XYZxyz(39.5596, 25.8406, 89.2722)
Luminance0.2584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B168F5 #ACF568
analogous
#6A68F5 #B168F5 #F568F2
triadic
#B168F5 #F5B168 #68F5B1
tetradic
#B168F5 #F56A68 #ACF568 #68F2F5
square
#B168F5 #F56A68 #ACF568 #68F2F5
split-complementary
#B168F5 #F2F568 #68F56A
monochromatic
#750ED5 #932FF1 #B168F5 #CFA1F9 #ECDBFD

Accessibility & contrast

On white

3.40
#B168F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#B168F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B168F5
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B168F5#FFFFFF#000000##000000
##B168F51.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C89FA
Deuteranopia (green-blind)
#4C8BF2
Tritanopia (blue-blind)
#A584A5
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b168f5;
/* rgb */ color: rgb(177, 104, 245);
/* oklch */ color: oklch(66.0% 0.207 305.3);
Tailwind
colors: {
  custom: {
    50: '#cc96f9',
    500: '#b168f5',
    950: '#000000',
  },
}
SCSS
$custom: #b168f5;
$custom-light: #cc96f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b168f5",
  "rgb": {
    "r": 177,
    "g": 104,
    "b": 245
  },
  "hsl": {
    "h": 271.064,
    "s": 87.578,
    "l": 68.431
  },
  "oklch": {
    "l": 0.66028,
    "c": 0.20688,
    "h": 305.3
  },
  "luminance": 0.2584
}

Semantic roles & 50–950 ramp

primary
#B168F5
secondary
#DCF2C7
accent
#E4016F
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B168F5

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

Preview Lab → · Contrast checker → · Palette generator →

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