#B18DFD#B18DFD

#B18DFD is a light, vivid violet. Relative luminance 0.355; OKLCH L 72.3% C 0.161 H 297.0°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#B18DFD
RGBrgb(177, 141, 253)
HSLhsl(259, 97%, 77%)
HSVhsv(259, 44%, 99%)
CMYKcmyk(30%, 44.3%, 0%, 0.8%)
CIE-LABlab(66.13, 36.80, -51.09)
CIE-LCHlch(66.13, 62.96, 305.77°)
OKLaboklab(72.29% 0.0731 -0.1434)
OKLCHoklch(72.29% 0.161 297)
XYZxyz(45.3817, 35.4882, 97.3684)
Luminance0.3549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B18DFD #D9FD8D
analogous
#8DA1FD #B18DFD #E98DFD
triadic
#B18DFD #FDB18D #8DFDB1
tetradic
#B18DFD #FD8DA1 #D9FD8D #8DFDE9
square
#B18DFD #FD8DA1 #D9FD8D #8DFDE9
split-complementary
#B18DFD #FDE98D #A1FD8D
monochromatic
#5F15FB #8851FC #B18DFD #DAC9FE #EAE1FE

Accessibility & contrast

On white

2.59
#B18DFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#B18DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B18DFD
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B18DFD#FFFFFF#000000##000000
##B18DFD1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b18dfd;
/* rgb */ color: rgb(177, 141, 253);
/* oklch */ color: oklch(72.3% 0.161 297.0);
Tailwind
colors: {
  custom: {
    50: '#cbaffe',
    500: '#b18dfd',
    950: '#000000',
  },
}
SCSS
$custom: #b18dfd;
$custom-light: #cbaffe;
$custom-dark: #000000;
JSON
{
  "hex": "#b18dfd",
  "rgb": {
    "r": 177,
    "g": 141,
    "b": 253
  },
  "hsl": {
    "h": 259.286,
    "s": 96.552,
    "l": 77.255
  },
  "oklch": {
    "l": 0.72285,
    "c": 0.16095,
    "h": 297
  },
  "luminance": 0.35489
}

Semantic roles & 50–950 ramp

primary
#B18DFD
secondary
#ECF7D4
accent
#E6009C
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141018
muted
#827F86

Preview Lab

Preview with #B18DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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