#B18DFC#B18DFC

#B18DFC is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.2% C 0.160 H 297.2°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#B18DFC
RGBrgb(177, 141, 252)
HSLhsl(259, 95%, 77%)
HSVhsv(259, 44%, 99%)
CMYKcmyk(29.8%, 44%, 0%, 1.2%)
CIE-LABlab(66.08, 36.56, -50.62)
CIE-LCHlch(66.08, 62.44, 305.84°)
OKLaboklab(72.23% 0.073 -0.142)
OKLCHoklch(72.23% 0.16 297.2)
XYZxyz(45.2228, 35.4246, 96.5317)
Luminance0.3543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B18DFC #D8FC8D
analogous
#8DA1FC #B18DFC #E88DFC
triadic
#B18DFC #FCB18D #8DFCB1
tetradic
#B18DFC #FC8DA1 #D8FC8D #8DFCE8
square
#B18DFC #FC8DA1 #D8FC8D #8DFCE8
split-complementary
#B18DFC #FCE88D #A1FC8D
monochromatic
#5F16F9 #8851FA #B18DFC #DAC9FE #EBE1FE

Accessibility & contrast

On white

2.60
#B18DFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#B18DFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B18DFC
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B18DFC#FFFFFF#000000##000000
##B18DFC1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA1FF
Deuteranopia (green-blind)
#729FF9
Tritanopia (blue-blind)
#A1A1B8
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b18dfc;
/* rgb */ color: rgb(177, 141, 252);
/* oklch */ color: oklch(72.2% 0.160 297.2);
Tailwind
colors: {
  custom: {
    50: '#cbaffe',
    500: '#b18dfc',
    950: '#000000',
  },
}
SCSS
$custom: #b18dfc;
$custom-light: #cbaffe;
$custom-dark: #000000;
JSON
{
  "hex": "#b18dfc",
  "rgb": {
    "r": 177,
    "g": 141,
    "b": 252
  },
  "hsl": {
    "h": 259.459,
    "s": 94.872,
    "l": 77.059
  },
  "oklch": {
    "l": 0.72232,
    "c": 0.15967,
    "h": 297.2
  },
  "luminance": 0.35425
}

Semantic roles & 50–950 ramp

primary
#B18DFC
secondary
#EBF6D5
accent
#E6009B
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141018
muted
#827F86

Preview Lab

Preview with #B18DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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