#B18EFE#B18EFE

#B18EFE is a light, vivid violet. Relative luminance 0.358; OKLCH L 72.5% C 0.161 H 296.6°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#B18EFE
RGBrgb(177, 142, 254)
HSLhsl(259, 98%, 78%)
HSVhsv(259, 44%, 100%)
CMYKcmyk(30.3%, 44.1%, 0%, 0.4%)
CIE-LABlab(66.40, 36.49, -51.20)
CIE-LCHlch(66.40, 62.87, 305.48°)
OKLaboklab(72.51% 0.0719 -0.1437)
OKLCHoklch(72.51% 0.161 296.6)
XYZxyz(45.6895, 35.8483, 98.2590)
Luminance0.3585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B18EFE #DBFE8E
analogous
#8EA3FE #B18EFE #E98EFE
triadic
#B18EFE #FEB18E #8EFEB1
tetradic
#B18EFE #FE8EA3 #DBFE8E #8EFEE9
square
#B18EFE #FE8EA3 #DBFE8E #8EFEE9
split-complementary
#B18EFE #FEE98E #A3FE8E
monochromatic
#5D15FD #8751FD #B18EFE #DBCBFF #EAE1FF

Accessibility & contrast

On white

2.57
#B18EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#B18EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B18EFE
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B18EFE#FFFFFF#000000##000000
##B18EFE1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA2FF
Deuteranopia (green-blind)
#72A0FB
Tritanopia (blue-blind)
#A1A2BA
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b18efe;
/* rgb */ color: rgb(177, 142, 254);
/* oklch */ color: oklch(72.5% 0.161 296.6);
Tailwind
colors: {
  custom: {
    50: '#cbafff',
    500: '#b18efe',
    950: '#000000',
  },
}
SCSS
$custom: #b18efe;
$custom-light: #cbafff;
$custom-dark: #000000;
JSON
{
  "hex": "#b18efe",
  "rgb": {
    "r": 177,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 258.75,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.7251,
    "c": 0.16071,
    "h": 296.6
  },
  "luminance": 0.35849
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B18EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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