#B170E2#B170E2

#B170E2 is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.1% C 0.173 H 308.7°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#B170E2
RGBrgb(177, 112, 226)
HSLhsl(274, 66%, 66%)
HSVhsv(274, 50%, 89%)
CMYKcmyk(21.7%, 50.4%, 0%, 11.4%)
CIE-LABlab(58.44, 46.35, -48.33)
CIE-LCHlch(58.44, 66.96, 313.80°)
OKLaboklab(66.1% 0.1085 -0.1353)
OKLCHoklch(66.1% 0.173 308.7)
XYZxyz(37.6504, 26.4270, 75.0542)
Luminance0.2643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170E2 #A1E270
analogous
#7870E2 #B170E2 #E270DA
triadic
#B170E2 #E2B170 #70E2B1
tetradic
#B170E2 #E27870 #A1E270 #70DAE2
square
#B170E2 #E27870 #A1E270 #70DAE2
split-complementary
#B170E2 #DAE270 #70E278
monochromatic
#7624B3 #953DD8 #B170E2 #CDA3EC #E9D6F7

Accessibility & contrast

On white

3.34
#B170E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#B170E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170E2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170E2#FFFFFF#000000##000000
##B170E21.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#518AE6
Deuteranopia (green-blind)
#648DDF
Tritanopia (blue-blind)
#AA839F
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #b170e2;
/* rgb */ color: rgb(177, 112, 226);
/* oklch */ color: oklch(66.1% 0.173 308.7);
Tailwind
colors: {
  custom: {
    50: '#cb9beb',
    500: '#b170e2',
    950: '#000000',
  },
}
SCSS
$custom: #b170e2;
$custom-light: #cb9beb;
$custom-dark: #000000;
JSON
{
  "hex": "#b170e2",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 226
  },
  "hsl": {
    "h": 274.211,
    "s": 66.279,
    "l": 66.275
  },
  "oklch": {
    "l": 0.661,
    "c": 0.17339,
    "h": 308.7
  },
  "luminance": 0.26426
}

Semantic roles & 50–950 ramp

primary
#B170E2
secondary
#D4EAC4
accent
#CE1766
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B170E2

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

Preview Lab → · Contrast checker → · Palette generator →

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