#B18EF2#B18EF2

#B18EF2 is a light, vivid violet. Relative luminance 0.351; OKLCH L 71.9% C 0.145 H 298.8°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#B18EF2
RGBrgb(177, 142, 242)
HSLhsl(261, 79%, 75%)
HSVhsv(261, 41%, 95%)
CMYKcmyk(26.9%, 41.3%, 0%, 5.1%)
CIE-LABlab(65.83, 33.57, -45.53)
CIE-LCHlch(65.83, 56.57, 306.40°)
OKLaboklab(71.89% 0.0701 -0.1272)
OKLCHoklch(71.89% 0.145 298.8)
XYZxyz(43.8278, 35.1036, 88.4538)
Luminance0.3510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B18EF2 #CFF28E
analogous
#8E9DF2 #B18EF2 #E38EF2
triadic
#B18EF2 #F2B18E #8EF2B1
tetradic
#B18EF2 #F28E9D #CFF28E #8EF2E3
square
#B18EF2 #F28E9D #CFF28E #8EF2E3
split-complementary
#B18EF2 #F2E38E #9DF28E
monochromatic
#6520E5 #8B57EC #B18EF2 #D7C5F8 #ECE4FC

Accessibility & contrast

On white

2.62
#B18EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#B18EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B18EF2
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B18EF2#FFFFFF#000000##000000
##B18EF21.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A0F6
Deuteranopia (green-blind)
#799FEF
Tritanopia (blue-blind)
#A49FB4
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b18ef2;
/* rgb */ color: rgb(177, 142, 242);
/* oklch */ color: oklch(71.9% 0.145 298.8);
Tailwind
colors: {
  custom: {
    50: '#caaff7',
    500: '#b18ef2',
    950: '#000000',
  },
}
SCSS
$custom: #b18ef2;
$custom-light: #caaff7;
$custom-dark: #000000;
JSON
{
  "hex": "#b18ef2",
  "rgb": {
    "r": 177,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 261,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.71889,
    "c": 0.14525,
    "h": 298.8
  },
  "luminance": 0.35104
}

Semantic roles & 50–950 ramp

primary
#B18EF2
secondary
#EAF4D7
accent
#DC0A92
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #B18EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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