#B170E4#B170E4

#B170E4 is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.2% C 0.176 H 308.2°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#B170E4
RGBrgb(177, 112, 228)
HSLhsl(274, 68%, 67%)
HSVhsv(274, 51%, 89%)
CMYKcmyk(22.4%, 50.9%, 0%, 10.6%)
CIE-LABlab(58.54, 46.80, -49.28)
CIE-LCHlch(58.54, 67.96, 313.52°)
OKLaboklab(66.21% 0.1087 -0.1381)
OKLCHoklch(66.21% 0.176 308.2)
XYZxyz(37.9265, 26.5374, 76.5080)
Luminance0.2654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170E4 #A3E470
analogous
#7770E4 #B170E4 #E470DD
triadic
#B170E4 #E4B170 #70E4B1
tetradic
#B170E4 #E47770 #A3E470 #70DDE4
square
#B170E4 #E47770 #A3E470 #70DDE4
split-complementary
#B170E4 #DDE470 #70E477
monochromatic
#7623B7 #953DDA #B170E4 #CDA3EE #E9D7F7

Accessibility & contrast

On white

3.33
#B170E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#B170E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170E4
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170E4#FFFFFF#000000##000000
##B170E41.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8AE8
Deuteranopia (green-blind)
#638EE1
Tritanopia (blue-blind)
#AA84A0
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b170e4;
/* rgb */ color: rgb(177, 112, 228);
/* oklch */ color: oklch(66.2% 0.176 308.2);
Tailwind
colors: {
  custom: {
    50: '#cb9bed',
    500: '#b170e4',
    950: '#000000',
  },
}
SCSS
$custom: #b170e4;
$custom-light: #cb9bed;
$custom-dark: #000000;
JSON
{
  "hex": "#b170e4",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 228
  },
  "hsl": {
    "h": 273.621,
    "s": 68.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.6621,
    "c": 0.17569,
    "h": 308.2
  },
  "luminance": 0.26537
}

Semantic roles & 50–950 ramp

primary
#B170E4
secondary
#D6EBC5
accent
#D01567
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B170E4

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

Preview Lab → · Contrast checker → · Palette generator →

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