#B38DF7#B38DF7

#B38DF7 is a light, vivid violet. Relative luminance 0.353; OKLCH L 72.2% C 0.154 H 299.0°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#B38DF7
RGBrgb(179, 141, 247)
HSLhsl(262, 87%, 76%)
HSVhsv(262, 43%, 97%)
CMYKcmyk(27.5%, 42.9%, 0%, 3.1%)
CIE-LABlab(66.02, 35.88, -47.96)
CIE-LCHlch(66.02, 59.90, 306.80°)
OKLaboklab(72.15% 0.0746 -0.1342)
OKLCHoklch(72.15% 0.154 299)
XYZxyz(44.8999, 35.3485, 92.4351)
Luminance0.3535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B38DF7 #D1F78D
analogous
#8D9CF7 #B38DF7 #E88DF7
triadic
#B38DF7 #F7B38D #8DF7B3
tetradic
#B38DF7 #F78D9C #D1F78D #8DF7E8
square
#B38DF7 #F78D9C #D1F78D #8DF7E8
split-complementary
#B38DF7 #F7E88D #9CF78D
monochromatic
#671BEF #8D54F3 #B38DF7 #D9C6FB #ECE2FD

Accessibility & contrast

On white

2.60
#B38DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#B38DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B38DF7
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B38DF7#FFFFFF#000000##000000
##B38DF71.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA0FB
Deuteranopia (green-blind)
#76A0F4
Tritanopia (blue-blind)
#A6A0B6
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b38df7;
/* rgb */ color: rgb(179, 141, 247);
/* oklch */ color: oklch(72.2% 0.154 299.0);
Tailwind
colors: {
  custom: {
    50: '#ccaffa',
    500: '#b38df7',
    950: '#000000',
  },
}
SCSS
$custom: #b38df7;
$custom-light: #ccaffa;
$custom-dark: #000000;
JSON
{
  "hex": "#b38df7",
  "rgb": {
    "r": 179,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 261.509,
    "s": 86.885,
    "l": 76.078
  },
  "oklch": {
    "l": 0.72153,
    "c": 0.15357,
    "h": 299
  },
  "luminance": 0.35349
}

Semantic roles & 50–950 ramp

primary
#B38DF7
secondary
#EAF5D6
accent
#E30293
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B38DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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