#B17EF8#B17EF8

#B17EF8 is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.5% C 0.178 H 301.2°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#B17EF8
RGBrgb(177, 126, 248)
HSLhsl(265, 90%, 73%)
HSVhsv(265, 49%, 97%)
CMYKcmyk(28.6%, 49.2%, 0%, 2.7%)
CIE-LABlab(62.55, 43.88, -54.02)
CIE-LCHlch(62.55, 69.60, 309.08°)
OKLaboklab(69.52% 0.0921 -0.1519)
OKLCHoklch(69.52% 0.178 301.2)
XYZxyz(42.5317, 31.0460, 92.5405)
Luminance0.3105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17EF8 #C5F87E
analogous
#7E88F8 #B17EF8 #EE7EF8
triadic
#B17EF8 #F8B17E #7EF8B1
tetradic
#B17EF8 #F87E88 #C5F87E #7EF8EE
square
#B17EF8 #F87E88 #C5F87E #7EF8EE
split-complementary
#B17EF8 #F8EE7E #88F87E
monochromatic
#6B0DEF #8E44F5 #B17EF8 #D4B8FB #EDE2FD

Accessibility & contrast

On white

2.91
#B17EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#B17EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B17EF8
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17EF8#FFFFFF#000000##000000
##B17EF81.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5797FC
Deuteranopia (green-blind)
#6497F5
Tritanopia (blue-blind)
#A394B0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #b17ef8;
/* rgb */ color: rgb(177, 126, 248);
/* oklch */ color: oklch(69.5% 0.178 301.2);
Tailwind
colors: {
  custom: {
    50: '#cba4fb',
    500: '#b17ef8',
    950: '#000000',
  },
}
SCSS
$custom: #b17ef8;
$custom-light: #cba4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b17ef8",
  "rgb": {
    "r": 177,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 265.082,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.69522,
    "c": 0.17766,
    "h": 301.2
  },
  "luminance": 0.31046
}

Semantic roles & 50–950 ramp

primary
#B17EF8
secondary
#E8F6D5
accent
#E60086
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B17EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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