#B17FEF#B17FEF

#B17FEF is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.2% C 0.165 H 302.9°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#B17FEF
RGBrgb(177, 127, 239)
HSLhsl(267, 78%, 72%)
HSVhsv(267, 47%, 94%)
CMYKcmyk(25.9%, 46.9%, 0%, 6.3%)
CIE-LABlab(62.30, 41.19, -49.44)
CIE-LCHlch(62.30, 64.35, 309.80°)
OKLaboklab(69.19% 0.0898 -0.1386)
OKLCHoklch(69.19% 0.165 302.9)
XYZxyz(41.2974, 30.7579, 85.4058)
Luminance0.3076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17FEF #BDEF7F
analogous
#7F85EF #B17FEF #E97FEF
triadic
#B17FEF #EFB17F #7FEFB1
tetradic
#B17FEF #EF7F85 #BDEF7F #7FEFE9
square
#B17FEF #EF7F85 #BDEF7F #7FEFE9
split-complementary
#B17FEF #EFE97F #85EF7F
monochromatic
#701BD9 #9049E8 #B17FEF #D2B5F6 #EEE4FC

Accessibility & contrast

On white

2.94
#B17FEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#B17FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B17FEF
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17FEF#FFFFFF#000000##000000
##B17FEF1.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F96F3
Deuteranopia (green-blind)
#6B96EC
Tritanopia (blue-blind)
#A693AC
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #b17fef;
/* rgb */ color: rgb(177, 127, 239);
/* oklch */ color: oklch(69.2% 0.165 302.9);
Tailwind
colors: {
  custom: {
    50: '#cba5f5',
    500: '#b17fef',
    950: '#000000',
  },
}
SCSS
$custom: #b17fef;
$custom-light: #cba5f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b17fef",
  "rgb": {
    "r": 177,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 266.786,
    "s": 77.778,
    "l": 71.765
  },
  "oklch": {
    "l": 0.6919,
    "c": 0.16513,
    "h": 302.9
  },
  "luminance": 0.30758
}

Semantic roles & 50–950 ramp

primary
#B17FEF
secondary
#E6F3D7
accent
#DA0B7E
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#130F17
muted
#827F85

Preview Lab

Preview with #B17FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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