#B181EC#B181EC

#B181EC is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.4% C 0.158 H 303.2°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#B181EC
RGBrgb(177, 129, 236)
HSLhsl(267, 74%, 72%)
HSVhsv(267, 45%, 93%)
CMYKcmyk(25%, 45.3%, 0%, 7.5%)
CIE-LABlab(62.60, 39.38, -47.32)
CIE-LCHlch(62.60, 61.57, 309.77°)
OKLaboklab(69.36% 0.0867 -0.1324)
OKLCHoklch(69.36% 0.158 303.2)
XYZxyz(41.1188, 31.1038, 83.1780)
Luminance0.3110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B181EC #BCEC81
analogous
#8187EC #B181EC #E781EC
triadic
#B181EC #ECB181 #81ECB1
tetradic
#B181EC #EC8187 #BCEC81 #81ECE7
square
#B181EC #EC8187 #BCEC81 #81ECE7
split-complementary
#B181EC #ECE781 #87EC81
monochromatic
#7020D3 #904CE4 #B181EC #D2B6F4 #EFE4FB

Accessibility & contrast

On white

2.91
#B181EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#B181EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B181EC
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B181EC#FFFFFF#000000##000000
##B181EC1.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6496F0
Deuteranopia (green-blind)
#6F97E9
Tritanopia (blue-blind)
#A793AB
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #b181ec;
/* rgb */ color: rgb(177, 129, 236);
/* oklch */ color: oklch(69.4% 0.158 303.2);
Tailwind
colors: {
  custom: {
    50: '#caa6f2',
    500: '#b181ec',
    950: '#000000',
  },
}
SCSS
$custom: #b181ec;
$custom-light: #caa6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b181ec",
  "rgb": {
    "r": 177,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 266.916,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.69361,
    "c": 0.15828,
    "h": 303.2
  },
  "luminance": 0.31104
}

Semantic roles & 50–950 ramp

primary
#B181EC
secondary
#E6F2D7
accent
#D6107D
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #B181EC

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

Preview Lab → · Contrast checker → · Palette generator →

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