#B17DF2#B17DF2

#B17DF2 is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.0% C 0.172 H 302.7°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#B17DF2
RGBrgb(177, 125, 242)
HSLhsl(267, 82%, 72%)
HSVhsv(267, 48%, 95%)
CMYKcmyk(26.9%, 48.3%, 0%, 5.1%)
CIE-LABlab(62.02, 43.00, -51.55)
CIE-LCHlch(62.02, 67.13, 309.83°)
OKLaboklab(69.03% 0.0928 -0.1447)
OKLCHoklch(69.03% 0.172 302.7)
XYZxyz(41.4885, 30.4252, 87.6741)
Luminance0.3043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17DF2 #BEF27D
analogous
#7D84F2 #B17DF2 #EC7DF2
triadic
#B17DF2 #F2B17D #7DF2B1
tetradic
#B17DF2 #F27D84 #BEF27D #7DF2EC
square
#B17DF2 #F27D84 #BEF27D #7DF2EC
split-complementary
#B17DF2 #F2EC7D #84F27D
monochromatic
#6F16DE #9045EC #B17DF2 #D2B5F8 #EEE3FC

Accessibility & contrast

On white

2.96
#B17DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#B17DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B17DF2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17DF2#FFFFFF#000000##000000
##B17DF21.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5995F6
Deuteranopia (green-blind)
#6796EF
Tritanopia (blue-blind)
#A592AC
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #b17df2;
/* rgb */ color: rgb(177, 125, 242);
/* oklch */ color: oklch(69.0% 0.172 302.7);
Tailwind
colors: {
  custom: {
    50: '#cba4f7',
    500: '#b17df2',
    950: '#000000',
  },
}
SCSS
$custom: #b17df2;
$custom-light: #cba4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b17df2",
  "rgb": {
    "r": 177,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 266.667,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69028,
    "c": 0.17191,
    "h": 302.7
  },
  "luminance": 0.30425
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B17DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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