#B17FFA#B17FFA

#B17FFA is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.8% C 0.179 H 300.6°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#B17FFA
RGBrgb(177, 127, 250)
HSLhsl(264, 92%, 74%)
HSVhsv(264, 49%, 98%)
CMYKcmyk(29.2%, 49.2%, 0%, 2%)
CIE-LABlab(62.87, 43.81, -54.61)
CIE-LCHlch(62.87, 70.01, 308.74°)
OKLaboklab(69.8% 0.091 -0.1537)
OKLCHoklch(69.8% 0.179 300.6)
XYZxyz(42.9722, 31.4278, 94.2262)
Luminance0.3143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17FFA #C8FA7F
analogous
#7F8BFA #B17FFA #EE7FFA
triadic
#B17FFA #FAB17F #7FFAB1
tetradic
#B17FFA #FA7F8B #C8FA7F #7FFAEE
square
#B17FFA #FA7F8B #C8FA7F #7FFAEE
split-complementary
#B17FFA #FAEE7F #8BFA7F
monochromatic
#690AF5 #8D44F8 #B17FFA #D5BAFC #EDE2FE

Accessibility & contrast

On white

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

On black

7.29
#B17FFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B17FFA
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17FFA#FFFFFF#000000##000000
##B17FFA1.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5798FE
Deuteranopia (green-blind)
#6497F7
Tritanopia (blue-blind)
#A396B1
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b17ffa;
/* rgb */ color: rgb(177, 127, 250);
/* oklch */ color: oklch(69.8% 0.179 300.6);
Tailwind
colors: {
  custom: {
    50: '#cba5fc',
    500: '#b17ffa',
    950: '#000000',
  },
}
SCSS
$custom: #b17ffa;
$custom-light: #cba5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b17ffa",
  "rgb": {
    "r": 177,
    "g": 127,
    "b": 250
  },
  "hsl": {
    "h": 264.39,
    "s": 92.481,
    "l": 73.922
  },
  "oklch": {
    "l": 0.69795,
    "c": 0.17858,
    "h": 300.6
  },
  "luminance": 0.31428
}

Semantic roles & 50–950 ramp

primary
#B17FFA
secondary
#E9F6D5
accent
#E60088
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B17FFA

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

Preview Lab → · Contrast checker → · Palette generator →

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