#B18DFB#B18DFB

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

Color values

HEX#B18DFB
RGBrgb(177, 141, 251)
HSLhsl(260, 93%, 77%)
HSVhsv(260, 44%, 98%)
CMYKcmyk(29.5%, 43.8%, 0%, 1.6%)
CIE-LABlab(66.03, 36.31, -50.15)
CIE-LCHlch(66.03, 61.91, 305.91°)
OKLaboklab(72.18% 0.0728 -0.1407)
OKLCHoklch(72.18% 0.158 297.4)
XYZxyz(45.0647, 35.3614, 95.6993)
Luminance0.3536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B18DFB #D7FB8D
analogous
#8DA0FB #B18DFB #E88DFB
triadic
#B18DFB #FBB18D #8DFBB1
tetradic
#B18DFB #FB8DA0 #D7FB8D #8DFBE8
square
#B18DFB #FB8DA0 #D7FB8D #8DFBE8
split-complementary
#B18DFB #FBE88D #A0FB8D
monochromatic
#6017F7 #8952F9 #B18DFB #D9C8FD #EBE1FE

Accessibility & contrast

On white

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

On black

8.07
#B18DFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B18DFB
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B18DFB#FFFFFF#000000##000000
##B18DFB1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA1FF
Deuteranopia (green-blind)
#739FF8
Tritanopia (blue-blind)
#A2A1B8
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b18dfb;
/* rgb */ color: rgb(177, 141, 251);
/* oklch */ color: oklch(72.2% 0.158 297.4);
Tailwind
colors: {
  custom: {
    50: '#cbaffd',
    500: '#b18dfb',
    950: '#000000',
  },
}
SCSS
$custom: #b18dfb;
$custom-light: #cbaffd;
$custom-dark: #000000;
JSON
{
  "hex": "#b18dfb",
  "rgb": {
    "r": 177,
    "g": 141,
    "b": 251
  },
  "hsl": {
    "h": 259.636,
    "s": 93.22,
    "l": 76.863
  },
  "oklch": {
    "l": 0.7218,
    "c": 0.15839,
    "h": 297.4
  },
  "luminance": 0.35362
}

Semantic roles & 50–950 ramp

primary
#B18DFB
secondary
#EBF6D5
accent
#E6009A
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #B18DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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