#B170ED#B170ED

#B170ED is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.7% C 0.186 H 306.0°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#B170ED
RGBrgb(177, 112, 237)
HSLhsl(271, 78%, 68%)
HSVhsv(271, 53%, 93%)
CMYKcmyk(25.3%, 52.7%, 0%, 7.1%)
CIE-LABlab(59.02, 48.84, -53.54)
CIE-LCHlch(59.02, 72.47, 312.37°)
OKLaboklab(66.72% 0.1093 -0.1505)
OKLCHoklch(66.72% 0.186 306)
XYZxyz(39.2085, 27.0502, 83.2600)
Luminance0.2705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170ED #ACED70
analogous
#7270ED #B170ED #ED70EA
triadic
#B170ED #EDB170 #70EDB1
tetradic
#B170ED #ED7270 #ACED70 #70EAED
square
#B170ED #ED7270 #ACED70 #70EAED
split-complementary
#B170ED #EAED70 #70ED72
monochromatic
#7519C9 #933AE6 #B170ED #CFA6F4 #ECDDFB

Accessibility & contrast

On white

3.28
#B170ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#B170ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170ED
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170ED#FFFFFF#000000##000000
##B170ED1.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#488CF1
Deuteranopia (green-blind)
#5C8EEA
Tritanopia (blue-blind)
#A787A4
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b170ed;
/* rgb */ color: rgb(177, 112, 237);
/* oklch */ color: oklch(66.7% 0.186 306.0);
Tailwind
colors: {
  custom: {
    50: '#cb9bf3',
    500: '#b170ed',
    950: '#000000',
  },
}
SCSS
$custom: #b170ed;
$custom-light: #cb9bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#b170ed",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 237
  },
  "hsl": {
    "h": 271.2,
    "s": 77.64,
    "l": 68.431
  },
  "oklch": {
    "l": 0.66718,
    "c": 0.18603,
    "h": 306
  },
  "luminance": 0.2705
}

Semantic roles & 50–950 ramp

primary
#B170ED
secondary
#DCEFCA
accent
#DA0C6F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B170ED

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

Preview Lab → · Contrast checker → · Palette generator →

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