#B170F3#B170F3

#B170F3 is a light, vivid violet. Relative luminance 0.274; OKLCH L 67.1% C 0.193 H 304.6°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#B170F3
RGBrgb(177, 112, 243)
HSLhsl(270, 85%, 70%)
HSVhsv(270, 54%, 95%)
CMYKcmyk(27.2%, 53.9%, 0%, 4.7%)
CIE-LABlab(59.35, 50.23, -56.35)
CIE-LCHlch(59.35, 75.49, 311.71°)
OKLaboklab(67.07% 0.1097 -0.1587)
OKLCHoklch(67.07% 0.193 304.6)
XYZxyz(40.0998, 27.4067, 87.9541)
Luminance0.2741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170F3 #B2F370
analogous
#7071F3 #B170F3 #F270F3
triadic
#B170F3 #F3B170 #70F3B1
tetradic
#B170F3 #F37071 #B2F370 #70F3F2
square
#B170F3 #F37071 #B2F370 #70F3F2
split-complementary
#B170F3 #F3F270 #71F370
monochromatic
#7412D7 #9238EE #B170F3 #D0A8F8 #EFE1FC

Accessibility & contrast

On white

3.24
#B170F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#B170F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170F3
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170F3#FFFFFF#000000##000000
##B170F31.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#428DF7
Deuteranopia (green-blind)
#588FF0
Tritanopia (blue-blind)
#A689A7
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b170f3;
/* rgb */ color: rgb(177, 112, 243);
/* oklch */ color: oklch(67.1% 0.193 304.6);
Tailwind
colors: {
  custom: {
    50: '#cc9bf8',
    500: '#b170f3',
    950: '#000000',
  },
}
SCSS
$custom: #b170f3;
$custom-light: #cc9bf8;
$custom-dark: #000000;
JSON
{
  "hex": "#b170f3",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 243
  },
  "hsl": {
    "h": 269.771,
    "s": 84.516,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67066,
    "c": 0.19291,
    "h": 304.6
  },
  "luminance": 0.27407
}

Semantic roles & 50–950 ramp

primary
#B170F3
secondary
#E0F2CD
accent
#E10574
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B170F3

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

Preview Lab → · Contrast checker → · Palette generator →

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