#B161E5#B161E5

#B161E5 is a light, vivid violet. Relative luminance 0.236; OKLCH L 64.1% C 0.200 H 309.9°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#B161E5
RGBrgb(177, 97, 229)
HSLhsl(276, 72%, 64%)
HSVhsv(276, 58%, 90%)
CMYKcmyk(22.7%, 57.6%, 0%, 10.2%)
CIE-LABlab(55.64, 54.80, -54.47)
CIE-LCHlch(55.64, 77.26, 315.17°)
OKLaboklab(64.09% 0.128 -0.1531)
OKLCHoklch(64.09% 0.2 309.9)
XYZxyz(36.5463, 23.5543, 76.7347)
Luminance0.2355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B161E5 #95E561
analogous
#6F61E5 #B161E5 #E561D7
triadic
#B161E5 #E5B161 #61E5B1
tetradic
#B161E5 #E56F61 #95E561 #61D7E5
square
#B161E5 #E56F61 #95E561 #61D7E5
split-complementary
#B161E5 #D7E561 #61E56F
monochromatic
#751DAF #972CDC #B161E5 #CB96EE #E5CAF6

Accessibility & contrast

On white

3.68
#B161E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#B161E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B161E5
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B161E5#FFFFFF#000000##000000
##B161E51.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3282E9
Deuteranopia (green-blind)
#5387E2
Tritanopia (blue-blind)
#AA799A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #b161e5;
/* rgb */ color: rgb(177, 97, 229);
/* oklch */ color: oklch(64.1% 0.200 309.9);
Tailwind
colors: {
  custom: {
    50: '#cb91ee',
    500: '#b161e5',
    950: '#000000',
  },
}
SCSS
$custom: #b161e5;
$custom-light: #cb91ee;
$custom-dark: #000000;
JSON
{
  "hex": "#b161e5",
  "rgb": {
    "r": 177,
    "g": 97,
    "b": 229
  },
  "hsl": {
    "h": 276.364,
    "s": 71.739,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64091,
    "c": 0.1996,
    "h": 309.9
  },
  "luminance": 0.23554
}

Semantic roles & 50–950 ramp

primary
#B161E5
secondary
#CCE8BA
accent
#D4125E
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B161E5

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

Preview Lab → · Contrast checker → · Palette generator →

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