#B161F2#B161F2

#B161F2 is a light, highly saturated violet. Relative luminance 0.243; OKLCH L 64.9% C 0.214 H 306.8°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B161F2
RGBrgb(177, 97, 242)
HSLhsl(273, 85%, 66%)
HSVhsv(273, 60%, 95%)
CMYKcmyk(26.9%, 59.9%, 0%, 5.1%)
CIE-LABlab(56.39, 57.68, -60.52)
CIE-LCHlch(56.39, 83.61, 313.62°)
OKLaboklab(64.88% 0.128 -0.1709)
OKLCHoklch(64.88% 0.214 306.8)
XYZxyz(38.4298, 24.3077, 86.6545)
Luminance0.2431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B161F2 #A2F261
analogous
#6961F2 #B161F2 #F261EB
triadic
#B161F2 #F2B161 #61F2B1
tetradic
#B161F2 #F26961 #A2F261 #61EBF2
square
#B161F2 #F26961 #A2F261 #61EBF2
split-complementary
#B161F2 #EBF261 #61F269
monochromatic
#7610C8 #9528ED #B161F2 #CD9AF7 #E9D2FB

Accessibility & contrast

On white

3.58
#B161F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#B161F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B161F2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B161F2#FFFFFF#000000##000000
##B161F21.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B84F7
Deuteranopia (green-blind)
#4688EF
Tritanopia (blue-blind)
#A77EA1
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b161f2;
/* rgb */ color: rgb(177, 97, 242);
/* oklch */ color: oklch(64.9% 0.214 306.8);
Tailwind
colors: {
  custom: {
    50: '#cc92f7',
    500: '#b161f2',
    950: '#000000',
  },
}
SCSS
$custom: #b161f2;
$custom-light: #cc92f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b161f2",
  "rgb": {
    "r": 177,
    "g": 97,
    "b": 242
  },
  "hsl": {
    "h": 273.103,
    "s": 84.795,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64884,
    "c": 0.21351,
    "h": 306.8
  },
  "luminance": 0.24307
}

Semantic roles & 50–950 ramp

primary
#B161F2
secondary
#D5EFC0
accent
#E10467
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #B161F2

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

Preview Lab → · Contrast checker → · Palette generator →

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