#B187F6#B187F6

#B187F6 is a light, vivid violet. Relative luminance 0.333; OKLCH L 70.9% C 0.161 H 299.8°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#B187F6
RGBrgb(177, 135, 246)
HSLhsl(263, 86%, 75%)
HSVhsv(263, 45%, 96%)
CMYKcmyk(28%, 45.1%, 0%, 3.5%)
CIE-LABlab(64.43, 38.44, -49.94)
CIE-LCHlch(64.43, 63.02, 307.58°)
OKLaboklab(70.89% 0.0801 -0.14)
OKLCHoklch(70.89% 0.161 299.8)
XYZxyz(43.4261, 33.3286, 91.3161)
Luminance0.3333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B187F6 #CCF687
analogous
#8794F6 #B187F6 #E987F6
triadic
#B187F6 #F6B187 #87F6B1
tetradic
#B187F6 #F68794 #CCF687 #87F6E9
square
#B187F6 #F68794 #CCF687 #87F6E9
split-complementary
#B187F6 #F6E987 #94F687
monochromatic
#6715ED #8C4EF2 #B187F6 #D6C0FA #ECE3FD

Accessibility & contrast

On white

2.74
#B187F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#B187F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B187F6
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B187F6#FFFFFF#000000##000000
##B187F61.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#669CFA
Deuteranopia (green-blind)
#6F9BF3
Tritanopia (blue-blind)
#A39BB3
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b187f6;
/* rgb */ color: rgb(177, 135, 246);
/* oklch */ color: oklch(70.9% 0.161 299.8);
Tailwind
colors: {
  custom: {
    50: '#cbaaf9',
    500: '#b187f6',
    950: '#000000',
  },
}
SCSS
$custom: #b187f6;
$custom-light: #cbaaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#b187f6",
  "rgb": {
    "r": 177,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 262.703,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.70894,
    "c": 0.16131,
    "h": 299.8
  },
  "luminance": 0.33329
}

Semantic roles & 50–950 ramp

primary
#B187F6
secondary
#E9F5D6
accent
#E3038E
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #B187F6

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

Preview Lab → · Contrast checker → · Palette generator →

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