#B187EC#B187EC

#B187EC is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.4% C 0.149 H 301.9°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#B187EC
RGBrgb(177, 135, 236)
HSLhsl(265, 73%, 73%)
HSVhsv(265, 43%, 93%)
CMYKcmyk(25%, 42.8%, 0%, 7.5%)
CIE-LABlab(63.94, 36.05, -45.20)
CIE-LCHlch(63.94, 57.81, 308.58°)
OKLaboklab(70.37% 0.0786 -0.1262)
OKLCHoklch(70.37% 0.149 301.9)
XYZxyz(41.9324, 32.7311, 83.4492)
Luminance0.3273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B187EC #C2EC87
analogous
#8790EC #B187EC #E387EC
triadic
#B187EC #ECB187 #87ECB1
tetradic
#B187EC #EC8790 #C2EC87 #87ECE3
square
#B187EC #EC8790 #C2EC87 #87ECE3
split-complementary
#B187EC #ECE387 #90EC87
monochromatic
#6D22D7 #8F52E4 #B187EC #D3BCF4 #EEE5FB

Accessibility & contrast

On white

2.78
#B187EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#B187EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B187EC
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B187EC#FFFFFF#000000##000000
##B187EC1.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9AF0
Deuteranopia (green-blind)
#759BE9
Tritanopia (blue-blind)
#A698AE
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #b187ec;
/* rgb */ color: rgb(177, 135, 236);
/* oklch */ color: oklch(70.4% 0.149 301.9);
Tailwind
colors: {
  custom: {
    50: '#caaaf2',
    500: '#b187ec',
    950: '#000000',
  },
}
SCSS
$custom: #b187ec;
$custom-light: #caaaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b187ec",
  "rgb": {
    "r": 177,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 264.95,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.70373,
    "c": 0.1487,
    "h": 301.9
  },
  "luminance": 0.32731
}

Semantic roles & 50–950 ramp

primary
#B187EC
secondary
#E8F2D9
accent
#D51183
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #B187EC

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

Preview Lab → · Contrast checker → · Palette generator →

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