#B162E5#B162E5

#B162E5 is a light, vivid violet. Relative luminance 0.237; OKLCH L 64.2% C 0.198 H 309.8°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#B162E5
RGBrgb(177, 98, 229)
HSLhsl(276, 72%, 64%)
HSVhsv(276, 57%, 90%)
CMYKcmyk(22.7%, 57.2%, 0%, 10.2%)
CIE-LABlab(55.83, 54.29, -54.17)
CIE-LCHlch(55.83, 76.69, 315.07°)
OKLaboklab(64.23% 0.1268 -0.1523)
OKLCHoklch(64.23% 0.198 309.8)
XYZxyz(36.6393, 23.7403, 76.7657)
Luminance0.2374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162E5 #96E562
analogous
#7062E5 #B162E5 #E562D8
triadic
#B162E5 #E5B162 #62E5B1
tetradic
#B162E5 #E57062 #96E562 #62D8E5
square
#B162E5 #E57062 #96E562 #62D8E5
split-complementary
#B162E5 #D8E562 #62E570
monochromatic
#751DB0 #972DDC #B162E5 #CB97EE #E5CBF6

Accessibility & contrast

On white

3.65
#B162E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#B162E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162E5
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162E5#FFFFFF#000000##000000
##B162E51.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3582E9
Deuteranopia (green-blind)
#5487E2
Tritanopia (blue-blind)
#AA7A9A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b162e5;
/* rgb */ color: rgb(177, 98, 229);
/* oklch */ color: oklch(64.2% 0.198 309.8);
Tailwind
colors: {
  custom: {
    50: '#cb92ee',
    500: '#b162e5',
    950: '#000000',
  },
}
SCSS
$custom: #b162e5;
$custom-light: #cb92ee;
$custom-dark: #000000;
JSON
{
  "hex": "#b162e5",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 229
  },
  "hsl": {
    "h": 276.183,
    "s": 71.585,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64228,
    "c": 0.19814,
    "h": 309.8
  },
  "luminance": 0.2374
}

Semantic roles & 50–950 ramp

primary
#B162E5
secondary
#CDE8BB
accent
#D4125F
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B162E5

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

Preview Lab → · Contrast checker → · Palette generator →

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