#B17FF2#B17FF2

#B17FF2 is a light, vivid violet. Relative luminance 0.309; OKLCH L 69.4% C 0.169 H 302.3°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#B17FF2
RGBrgb(177, 127, 242)
HSLhsl(266, 82%, 72%)
HSVhsv(266, 48%, 95%)
CMYKcmyk(26.9%, 47.5%, 0%, 5.1%)
CIE-LABlab(62.45, 41.90, -50.86)
CIE-LCHlch(62.45, 65.90, 309.48°)
OKLaboklab(69.35% 0.0901 -0.1427)
OKLCHoklch(69.35% 0.169 302.3)
XYZxyz(41.7443, 30.9366, 87.7593)
Luminance0.3094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17FF2 #C0F27F
analogous
#7F87F2 #B17FF2 #EA7FF2
triadic
#B17FF2 #F2B17F #7FF2B1
tetradic
#B17FF2 #F27F87 #C0F27F #7FF2EA
square
#B17FF2 #F27F87 #C0F27F #7FF2EA
split-complementary
#B17FF2 #F2EA7F #87F27F
monochromatic
#6E17E0 #8F47EC #B17FF2 #D3B7F8 #EEE3FC

Accessibility & contrast

On white

2.92
#B17FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.19
#B17FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B17FF2
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17FF2#FFFFFF#000000##000000
##B17FF21.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D96F6
Deuteranopia (green-blind)
#6997EF
Tritanopia (blue-blind)
#A594AD
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #b17ff2;
/* rgb */ color: rgb(177, 127, 242);
/* oklch */ color: oklch(69.4% 0.169 302.3);
Tailwind
colors: {
  custom: {
    50: '#cba5f7',
    500: '#b17ff2',
    950: '#000000',
  },
}
SCSS
$custom: #b17ff2;
$custom-light: #cba5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b17ff2",
  "rgb": {
    "r": 177,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 266.087,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69353,
    "c": 0.1688,
    "h": 302.3
  },
  "luminance": 0.30937
}

Semantic roles & 50–950 ramp

primary
#B17FF2
secondary
#E7F4D7
accent
#DE0881
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B17FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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