#B170EB#B170EB

#B170EB is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.6% C 0.184 H 306.5°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#B170EB
RGBrgb(177, 112, 235)
HSLhsl(272, 75%, 68%)
HSVhsv(272, 52%, 92%)
CMYKcmyk(24.7%, 52.3%, 0%, 7.8%)
CIE-LABlab(58.91, 48.38, -52.60)
CIE-LCHlch(58.91, 71.47, 312.61°)
OKLaboklab(66.6% 0.1092 -0.1478)
OKLCHoklch(66.6% 0.184 306.5)
XYZxyz(38.9179, 26.9340, 81.7297)
Luminance0.2693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170EB #AAEB70
analogous
#7370EB #B170EB #EB70E8
triadic
#B170EB #EBB170 #70EBB1
tetradic
#B170EB #EB7370 #AAEB70 #70E8EB
square
#B170EB #EB7370 #AAEB70 #70E8EB
split-complementary
#B170EB #E8EB70 #70EB73
monochromatic
#751CC5 #943AE3 #B170EB #CEA6F3 #ECDBFA

Accessibility & contrast

On white

3.29
#B170EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#B170EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170EB
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170EB#FFFFFF#000000##000000
##B170EB1.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#498BEF
Deuteranopia (green-blind)
#5E8EE8
Tritanopia (blue-blind)
#A886A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b170eb;
/* rgb */ color: rgb(177, 112, 235);
/* oklch */ color: oklch(66.6% 0.184 306.5);
Tailwind
colors: {
  custom: {
    50: '#cb9bf2',
    500: '#b170eb',
    950: '#000000',
  },
}
SCSS
$custom: #b170eb;
$custom-light: #cb9bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b170eb",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 235
  },
  "hsl": {
    "h": 271.707,
    "s": 75.46,
    "l": 68.039
  },
  "oklch": {
    "l": 0.66604,
    "c": 0.18373,
    "h": 306.5
  },
  "luminance": 0.26934
}

Semantic roles & 50–950 ramp

primary
#B170EB
secondary
#DAEEC9
accent
#D80E6D
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B170EB

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

Preview Lab → · Contrast checker → · Palette generator →

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