#B18AF7#B18AF7

#B18AF7 is a light, vivid violet. Relative luminance 0.342; OKLCH L 71.5% C 0.158 H 298.9°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#B18AF7
RGBrgb(177, 138, 247)
HSLhsl(261, 87%, 75%)
HSVhsv(261, 44%, 97%)
CMYKcmyk(28.3%, 44.1%, 0%, 3.1%)
CIE-LABlab(65.15, 37.01, -49.34)
CIE-LCHlch(65.15, 61.68, 306.87°)
OKLaboklab(71.46% 0.0762 -0.1383)
OKLCHoklch(71.46% 0.158 298.9)
XYZxyz(44.0045, 34.2391, 92.2681)
Luminance0.3424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B18AF7 #D0F78A
analogous
#8A99F7 #B18AF7 #E88AF7
triadic
#B18AF7 #F7B18A #8AF7B1
tetradic
#B18AF7 #F78A99 #D0F78A #8AF7E8
square
#B18AF7 #F78A99 #D0F78A #8AF7E8
split-complementary
#B18AF7 #F7E88A #99F78A
monochromatic
#6517EF #8B51F3 #B18AF7 #D7C3FB #ECE2FD

Accessibility & contrast

On white

2.68
#B18AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#B18AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B18AF7
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B18AF7#FFFFFF#000000##000000
##B18AF71.002.687.857.85
#FFFFFF2.681.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9EFB
Deuteranopia (green-blind)
#729DF4
Tritanopia (blue-blind)
#A39DB5
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b18af7;
/* rgb */ color: rgb(177, 138, 247);
/* oklch */ color: oklch(71.5% 0.158 298.9);
Tailwind
colors: {
  custom: {
    50: '#cbadfa',
    500: '#b18af7',
    950: '#000000',
  },
}
SCSS
$custom: #b18af7;
$custom-light: #cbadfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b18af7",
  "rgb": {
    "r": 177,
    "g": 138,
    "b": 247
  },
  "hsl": {
    "h": 261.468,
    "s": 87.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71456,
    "c": 0.15792,
    "h": 298.9
  },
  "luminance": 0.34239
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B18AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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