#B387FC#B387FC

#B387FC is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.4% C 0.169 H 299.5°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#B387FC
RGBrgb(179, 135, 252)
HSLhsl(263, 95%, 76%)
HSVhsv(263, 46%, 99%)
CMYKcmyk(29%, 46.4%, 0%, 1.2%)
CIE-LABlab(64.91, 40.41, -52.45)
CIE-LCHlch(64.91, 66.21, 307.61°)
OKLaboklab(71.4% 0.0832 -0.1473)
OKLCHoklch(71.4% 0.169 299.5)
XYZxyz(44.8209, 33.9396, 96.2662)
Luminance0.3394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B387FC #D0FC87
analogous
#8795FC #B387FC #ED87FC
triadic
#B387FC #FCB387 #87FCB3
tetradic
#B387FC #FC8795 #D0FC87 #87FCED
square
#B387FC #FC8795 #D0FC87 #87FCED
split-complementary
#B387FC #FCED87 #95FC87
monochromatic
#6710F9 #8D4BFB #B387FC #D9C3FD #ECE1FE

Accessibility & contrast

On white

2.70
#B387FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#B387FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B387FC
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B387FC#FFFFFF#000000##000000
##B387FC1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#639DFF
Deuteranopia (green-blind)
#6D9DF9
Tritanopia (blue-blind)
#A49CB6
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b387fc;
/* rgb */ color: rgb(179, 135, 252);
/* oklch */ color: oklch(71.4% 0.169 299.5);
Tailwind
colors: {
  custom: {
    50: '#ccabfe',
    500: '#b387fc',
    950: '#000000',
  },
}
SCSS
$custom: #b387fc;
$custom-light: #ccabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b387fc",
  "rgb": {
    "r": 179,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 262.564,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71403,
    "c": 0.16918,
    "h": 299.5
  },
  "luminance": 0.3394
}

Semantic roles & 50–950 ramp

primary
#B387FC
secondary
#EAF6D5
accent
#E6008F
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141018
muted
#827F86

Preview Lab

Preview with #B387FC

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

Preview Lab → · Contrast checker → · Palette generator →

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