#B38EF7#B38EF7

#B38EF7 is a light, vivid violet. Relative luminance 0.356; OKLCH L 72.3% C 0.152 H 298.8°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#B38EF7
RGBrgb(179, 142, 247)
HSLhsl(261, 87%, 76%)
HSVhsv(261, 43%, 97%)
CMYKcmyk(27.5%, 42.5%, 0%, 3.1%)
CIE-LABlab(66.25, 35.32, -47.60)
CIE-LCHlch(66.25, 59.27, 306.58°)
OKLaboklab(72.32% 0.0732 -0.1332)
OKLCHoklch(72.32% 0.152 298.8)
XYZxyz(45.0480, 35.6448, 92.4845)
Luminance0.3564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B38EF7 #D2F78E
analogous
#8E9EF7 #B38EF7 #E88EF7
triadic
#B38EF7 #F7B38E #8EF7B3
tetradic
#B38EF7 #F78E9E #D2F78E #8EF7E8
square
#B38EF7 #F78E9E #D2F78E #8EF7E8
split-complementary
#B38EF7 #F7E88E #9EF78E
monochromatic
#661CEF #8D55F3 #B38EF7 #D9C7FB #ECE2FD

Accessibility & contrast

On white

2.58
#B38EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#B38EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B38EF7
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B38EF7#FFFFFF#000000##000000
##B38EF71.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A1FB
Deuteranopia (green-blind)
#78A0F4
Tritanopia (blue-blind)
#A6A0B7
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b38ef7;
/* rgb */ color: rgb(179, 142, 247);
/* oklch */ color: oklch(72.3% 0.152 298.8);
Tailwind
colors: {
  custom: {
    50: '#ccaffa',
    500: '#b38ef7',
    950: '#000000',
  },
}
SCSS
$custom: #b38ef7;
$custom-light: #ccaffa;
$custom-dark: #000000;
JSON
{
  "hex": "#b38ef7",
  "rgb": {
    "r": 179,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 261.143,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.72325,
    "c": 0.15201,
    "h": 298.8
  },
  "luminance": 0.35645
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B38EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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