#B170F2#B170F2

#B170F2 is a light, vivid violet. Relative luminance 0.273; OKLCH L 67.0% C 0.192 H 304.9°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#B170F2
RGBrgb(177, 112, 242)
HSLhsl(270, 83%, 69%)
HSVhsv(270, 54%, 95%)
CMYKcmyk(26.9%, 53.7%, 0%, 5.1%)
CIE-LABlab(59.29, 49.99, -55.89)
CIE-LCHlch(59.29, 74.98, 311.81°)
OKLaboklab(67.01% 0.1096 -0.1574)
OKLCHoklch(67.01% 0.192 304.9)
XYZxyz(39.9492, 27.3465, 87.1610)
Luminance0.2735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170F2 #B1F270
analogous
#7070F2 #B170F2 #F270F2
triadic
#B170F2 #F2B170 #70F2B1
tetradic
#B170F2 #F27070 #B1F270 #70F2F2
square
#B170F2 #F27070 #B1F270 #70F2F2
split-complementary
#B170F2 #F2F270 #70F270
monochromatic
#7413D4 #9238ED #B170F2 #D0A8F7 #EEE0FC

Accessibility & contrast

On white

3.25
#B170F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#B170F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170F2
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170F2#FFFFFF#000000##000000
##B170F21.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#438DF6
Deuteranopia (green-blind)
#588FEF
Tritanopia (blue-blind)
#A688A7
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b170f2;
/* rgb */ color: rgb(177, 112, 242);
/* oklch */ color: oklch(67.0% 0.192 304.9);
Tailwind
colors: {
  custom: {
    50: '#cb9bf7',
    500: '#b170f2',
    950: '#000000',
  },
}
SCSS
$custom: #b170f2;
$custom-light: #cb9bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b170f2",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 242
  },
  "hsl": {
    "h": 270,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.67007,
    "c": 0.19177,
    "h": 304.9
  },
  "luminance": 0.27346
}

Semantic roles & 50–950 ramp

primary
#B170F2
secondary
#DFF2CC
accent
#E00673
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B170F2

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

Preview Lab → · Contrast checker → · Palette generator →

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