#B17EFE#B17EFE

#B17EFE is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.9% C 0.185 H 300.0°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#B17EFE
RGBrgb(177, 126, 254)
HSLhsl(264, 98%, 75%)
HSVhsv(264, 50%, 100%)
CMYKcmyk(30.3%, 50.4%, 0%, 0.4%)
CIE-LABlab(62.86, 45.32, -56.81)
CIE-LCHlch(62.86, 72.68, 308.58°)
OKLaboklab(69.86% 0.0926 -0.1601)
OKLCHoklch(69.86% 0.185 300)
XYZxyz(43.4775, 31.4243, 97.5217)
Luminance0.3142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17EFE #CBFE7E
analogous
#7E8BFE #B17EFE #F17EFE
triadic
#B17EFE #FEB17E #7EFEB1
tetradic
#B17EFE #FE7E8B #CBFE7E #7EFEF1
square
#B17EFE #FE7E8B #CBFE7E #7EFEF1
split-complementary
#B17EFE #FEF17E #8BFE7E
monochromatic
#6805FD #8C41FE #B17EFE #D6BBFE #EDE1FF

Accessibility & contrast

On white

2.88
#B17EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#B17EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B17EFE
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17EFE#FFFFFF#000000##000000
##B17EFE1.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5298FF
Deuteranopia (green-blind)
#5F97FB
Tritanopia (blue-blind)
#A196B2
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b17efe;
/* rgb */ color: rgb(177, 126, 254);
/* oklch */ color: oklch(69.9% 0.185 300.0);
Tailwind
colors: {
  custom: {
    50: '#cca4ff',
    500: '#b17efe',
    950: '#000000',
  },
}
SCSS
$custom: #b17efe;
$custom-light: #cca4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b17efe",
  "rgb": {
    "r": 177,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 263.906,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.69861,
    "c": 0.18495,
    "h": 300
  },
  "luminance": 0.31425
}

Semantic roles & 50–950 ramp

primary
#B17EFE
secondary
#E9F7D4
accent
#E6008A
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #B17EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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