#B18BF2#B18BF2

#B18BF2 is a light, vivid violet. Relative luminance 0.342; OKLCH L 71.4% C 0.150 H 299.6°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#B18BF2
RGBrgb(177, 139, 242)
HSLhsl(262, 80%, 75%)
HSVhsv(262, 43%, 95%)
CMYKcmyk(26.9%, 42.6%, 0%, 5.1%)
CIE-LABlab(65.14, 35.25, -46.62)
CIE-LCHlch(65.14, 58.44, 307.09°)
OKLaboklab(71.37% 0.0741 -0.1304)
OKLCHoklch(71.37% 0.15 299.6)
XYZxyz(43.3874, 34.2229, 88.3071)
Luminance0.3422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B18BF2 #CCF28B
analogous
#8B99F2 #B18BF2 #E58BF2
triadic
#B18BF2 #F2B18B #8BF2B1
tetradic
#B18BF2 #F28B99 #CCF28B #8BF2E5
square
#B18BF2 #F28B99 #CCF28B #8BF2E5
split-complementary
#B18BF2 #F2E58B #99F28B
monochromatic
#671DE6 #8C54EC #B18BF2 #D6C2F8 #ECE3FC

Accessibility & contrast

On white

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

On black

7.84
#B18BF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B18BF2
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B18BF2#FFFFFF#000000##000000
##B18BF21.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9EF6
Deuteranopia (green-blind)
#769DEF
Tritanopia (blue-blind)
#A49DB3
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b18bf2;
/* rgb */ color: rgb(177, 139, 242);
/* oklch */ color: oklch(71.4% 0.150 299.6);
Tailwind
colors: {
  custom: {
    50: '#caadf7',
    500: '#b18bf2',
    950: '#000000',
  },
}
SCSS
$custom: #b18bf2;
$custom-light: #caadf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b18bf2",
  "rgb": {
    "r": 177,
    "g": 139,
    "b": 242
  },
  "hsl": {
    "h": 262.136,
    "s": 79.845,
    "l": 74.706
  },
  "oklch": {
    "l": 0.71368,
    "c": 0.14998,
    "h": 299.6
  },
  "luminance": 0.34223
}

Semantic roles & 50–950 ramp

primary
#B18BF2
secondary
#E9F4D7
accent
#DC098E
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #B18BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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