#B38BF7#B38BF7

#B38BF7 is a light, vivid violet. Relative luminance 0.348; OKLCH L 71.8% C 0.157 H 299.5°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#B38BF7
RGBrgb(179, 139, 247)
HSLhsl(262, 87%, 76%)
HSVhsv(262, 44%, 97%)
CMYKcmyk(27.5%, 43.7%, 0%, 3.1%)
CIE-LABlab(65.56, 36.99, -48.68)
CIE-LCHlch(65.56, 61.14, 307.23°)
OKLaboklab(71.81% 0.0772 -0.1363)
OKLCHoklch(71.81% 0.157 299.5)
XYZxyz(44.6076, 34.7641, 92.3377)
Luminance0.3476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B38BF7 #CFF78B
analogous
#8B99F7 #B38BF7 #E98BF7
triadic
#B38BF7 #F7B38B #8BF7B3
tetradic
#B38BF7 #F78B99 #CFF78B #8BF7E9
square
#B38BF7 #F78B99 #CFF78B #8BF7E9
split-complementary
#B38BF7 #F7E98B #99F78B
monochromatic
#6818EF #8D52F3 #B38BF7 #D9C4FB #ECE2FD

Accessibility & contrast

On white

2.64
#B38BF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#B38BF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B38BF7
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B38BF7#FFFFFF#000000##000000
##B38BF71.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9FFB
Deuteranopia (green-blind)
#749EF4
Tritanopia (blue-blind)
#A69EB5
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b38bf7;
/* rgb */ color: rgb(179, 139, 247);
/* oklch */ color: oklch(71.8% 0.157 299.5);
Tailwind
colors: {
  custom: {
    50: '#ccadfa',
    500: '#b38bf7',
    950: '#000000',
  },
}
SCSS
$custom: #b38bf7;
$custom-light: #ccadfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b38bf7",
  "rgb": {
    "r": 179,
    "g": 139,
    "b": 247
  },
  "hsl": {
    "h": 262.222,
    "s": 87.097,
    "l": 75.686
  },
  "oklch": {
    "l": 0.7181,
    "c": 0.15669,
    "h": 299.5
  },
  "luminance": 0.34764
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B38BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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