#B18BF7#B18BF7

#B18BF7 is a light, vivid violet. Relative luminance 0.345; OKLCH L 71.6% C 0.156 H 298.6°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#B18BF7
RGBrgb(177, 139, 247)
HSLhsl(261, 87%, 76%)
HSVhsv(261, 44%, 97%)
CMYKcmyk(28.3%, 43.7%, 0%, 3.1%)
CIE-LABlab(65.38, 36.45, -48.98)
CIE-LCHlch(65.38, 61.06, 306.66°)
OKLaboklab(71.63% 0.0749 -0.1373)
OKLCHoklch(71.63% 0.156 298.6)
XYZxyz(44.1486, 34.5274, 92.3162)
Luminance0.3453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B18BF7 #D1F78B
analogous
#8B9BF7 #B18BF7 #E78BF7
triadic
#B18BF7 #F7B18B #8BF7B1
tetradic
#B18BF7 #F78B9B #D1F78B #8BF7E7
square
#B18BF7 #F78B9B #D1F78B #8BF7E7
split-complementary
#B18BF7 #F7E78B #9BF78B
monochromatic
#6418EF #8B52F3 #B18BF7 #D7C4FB #ECE2FD

Accessibility & contrast

On white

2.66
#B18BF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#B18BF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B18BF7
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B18BF7#FFFFFF#000000##000000
##B18BF71.002.667.917.91
#FFFFFF2.661.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9FFB
Deuteranopia (green-blind)
#739EF4
Tritanopia (blue-blind)
#A39EB5
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b18bf7;
/* rgb */ color: rgb(177, 139, 247);
/* oklch */ color: oklch(71.6% 0.156 298.6);
Tailwind
colors: {
  custom: {
    50: '#cbadfa',
    500: '#b18bf7',
    950: '#000000',
  },
}
SCSS
$custom: #b18bf7;
$custom-light: #cbadfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b18bf7",
  "rgb": {
    "r": 177,
    "g": 139,
    "b": 247
  },
  "hsl": {
    "h": 261.111,
    "s": 87.097,
    "l": 75.686
  },
  "oklch": {
    "l": 0.71627,
    "c": 0.15637,
    "h": 298.6
  },
  "luminance": 0.34528
}

Semantic roles & 50–950 ramp

primary
#B18BF7
secondary
#EAF5D6
accent
#E40294
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #B18BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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