#B161E4#B161E4

#B161E4 is a light, vivid violet. Relative luminance 0.235; OKLCH L 64.0% C 0.199 H 310.1°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#B161E4
RGBrgb(177, 97, 228)
HSLhsl(277, 71%, 64%)
HSVhsv(277, 57%, 89%)
CMYKcmyk(22.4%, 57.5%, 0%, 10.6%)
CIE-LABlab(55.58, 54.58, -53.99)
CIE-LCHlch(55.58, 76.77, 315.31°)
OKLaboklab(64.03% 0.128 -0.1518)
OKLCHoklch(64.03% 0.199 310.1)
XYZxyz(36.4071, 23.4986, 76.0015)
Luminance0.2350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B161E4 #94E461
analogous
#6F61E4 #B161E4 #E461D6
triadic
#B161E4 #E4B161 #61E4B1
tetradic
#B161E4 #E46F61 #94E461 #61D6E4
square
#B161E4 #E46F61 #94E461 #61D6E4
split-complementary
#B161E4 #D6E461 #61E46F
monochromatic
#751EAD #972DDB #B161E4 #CB95ED #E5CAF6

Accessibility & contrast

On white

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

On black

5.70
#B161E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B161E4
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B161E4#FFFFFF#000000##000000
##B161E41.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3481E8
Deuteranopia (green-blind)
#5386E1
Tritanopia (blue-blind)
#AA7999
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #b161e4;
/* rgb */ color: rgb(177, 97, 228);
/* oklch */ color: oklch(64.0% 0.199 310.1);
Tailwind
colors: {
  custom: {
    50: '#cb91ed',
    500: '#b161e4',
    950: '#000000',
  },
}
SCSS
$custom: #b161e4;
$custom-light: #cb91ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b161e4",
  "rgb": {
    "r": 177,
    "g": 97,
    "b": 228
  },
  "hsl": {
    "h": 276.641,
    "s": 70.811,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64031,
    "c": 0.19853,
    "h": 310.1
  },
  "luminance": 0.23498
}

Semantic roles & 50–950 ramp

primary
#B161E4
secondary
#CBE7B9
accent
#D3135D
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B161E4

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

Preview Lab → · Contrast checker → · Palette generator →

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