#B170F5#B170F5

#B170F5 is a light, vivid violet. Relative luminance 0.275; OKLCH L 67.2% C 0.195 H 304.2°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#B170F5
RGBrgb(177, 112, 245)
HSLhsl(269, 87%, 70%)
HSVhsv(269, 54%, 96%)
CMYKcmyk(27.8%, 54.3%, 0%, 3.9%)
CIE-LABlab(59.46, 50.69, -57.28)
CIE-LCHlch(59.46, 76.49, 311.51°)
OKLaboklab(67.18% 0.1097 -0.1614)
OKLCHoklch(67.18% 0.195 304.2)
XYZxyz(40.4034, 27.5282, 89.5534)
Luminance0.2753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170F5 #B4F570
analogous
#7072F5 #B170F5 #F370F5
triadic
#B170F5 #F5B170 #70F5B1
tetradic
#B170F5 #F57072 #B4F570 #70F5F3
square
#B170F5 #F57072 #B4F570 #70F5F3
split-complementary
#B170F5 #F5F370 #72F570
monochromatic
#730FDB #9237F1 #B170F5 #D0A9F9 #EFE2FD

Accessibility & contrast

On white

3.23
#B170F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#B170F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170F5
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170F5#FFFFFF#000000##000000
##B170F51.003.236.516.51
#FFFFFF3.231.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8DF9
Deuteranopia (green-blind)
#568FF2
Tritanopia (blue-blind)
#A589A8
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b170f5;
/* rgb */ color: rgb(177, 112, 245);
/* oklch */ color: oklch(67.2% 0.195 304.2);
Tailwind
colors: {
  custom: {
    50: '#cc9bf9',
    500: '#b170f5',
    950: '#000000',
  },
}
SCSS
$custom: #b170f5;
$custom-light: #cc9bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#b170f5",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 245
  },
  "hsl": {
    "h": 269.323,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.67184,
    "c": 0.19522,
    "h": 304.2
  },
  "luminance": 0.27528
}

Semantic roles & 50–950 ramp

primary
#B170F5
secondary
#E1F3CE
accent
#E30275
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B170F5

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

Preview Lab → · Contrast checker → · Palette generator →

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