#B38CEB#B38CEB

#B38CEB is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.4% C 0.140 H 301.9°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#B38CEB
RGBrgb(179, 140, 235)
HSLhsl(265, 70%, 74%)
HSVhsv(265, 40%, 92%)
CMYKcmyk(23.8%, 40.4%, 0%, 7.8%)
CIE-LABlab(65.23, 33.59, -42.61)
CIE-LCHlch(65.23, 54.26, 308.25°)
OKLaboklab(71.37% 0.0739 -0.1187)
OKLCHoklch(71.37% 0.14 301.9)
XYZxyz(42.9606, 34.3380, 82.9458)
Luminance0.3434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B38CEB #C4EB8C
analogous
#8C94EB #B38CEB #E38CEB
triadic
#B38CEB #EBB38C #8CEBB3
tetradic
#B38CEB #EB8C94 #C4EB8C #8CEBE3
square
#B38CEB #EB8C94 #C4EB8C #8CEBE3
split-complementary
#B38CEB #EBE38C #94EB8C
monochromatic
#6E25D7 #9158E2 #B38CEB #D5C0F4 #EEE5FA

Accessibility & contrast

On white

2.67
#B38CEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#B38CEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B38CEB
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B38CEB#FFFFFF#000000##000000
##B38CEB1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#749EEF
Deuteranopia (green-blind)
#7C9EE8
Tritanopia (blue-blind)
#A99CB0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b38ceb;
/* rgb */ color: rgb(179, 140, 235);
/* oklch */ color: oklch(71.4% 0.140 301.9);
Tailwind
colors: {
  custom: {
    50: '#cbaef2',
    500: '#b38ceb',
    950: '#000000',
  },
}
SCSS
$custom: #b38ceb;
$custom-light: #cbaef2;
$custom-dark: #000000;
JSON
{
  "hex": "#b38ceb",
  "rgb": {
    "r": 179,
    "g": 140,
    "b": 235
  },
  "hsl": {
    "h": 264.632,
    "s": 70.37,
    "l": 73.529
  },
  "oklch": {
    "l": 0.71374,
    "c": 0.13983,
    "h": 301.9
  },
  "luminance": 0.34338
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B38CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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