#B162E4#B162E4

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

Color values

HEX#B162E4
RGBrgb(177, 98, 228)
HSLhsl(276, 71%, 64%)
HSVhsv(276, 57%, 89%)
CMYKcmyk(22.4%, 57%, 0%, 10.6%)
CIE-LABlab(55.77, 54.07, -53.69)
CIE-LCHlch(55.77, 76.20, 315.20°)
OKLaboklab(64.17% 0.1267 -0.1509)
OKLCHoklch(64.17% 0.197 310)
XYZxyz(36.5001, 23.6846, 76.0325)
Luminance0.2368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162E4 #95E462
analogous
#7062E4 #B162E4 #E462D6
triadic
#B162E4 #E4B162 #62E4B1
tetradic
#B162E4 #E47062 #95E462 #62D6E4
square
#B162E4 #E47062 #95E462 #62D6E4
split-complementary
#B162E4 #D6E462 #62E470
monochromatic
#751EAE #972EDB #B162E4 #CB96ED #E5CAF6

Accessibility & contrast

On white

3.66
#B162E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#B162E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162E4
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162E4#FFFFFF#000000##000000
##B162E41.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3682E8
Deuteranopia (green-blind)
#5587E1
Tritanopia (blue-blind)
#AA7A9A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b162e4;
/* rgb */ color: rgb(177, 98, 228);
/* oklch */ color: oklch(64.2% 0.197 310.0);
Tailwind
colors: {
  custom: {
    50: '#cb92ed',
    500: '#b162e4',
    950: '#000000',
  },
}
SCSS
$custom: #b162e4;
$custom-light: #cb92ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b162e4",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 228
  },
  "hsl": {
    "h": 276.462,
    "s": 70.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64169,
    "c": 0.19706,
    "h": 310
  },
  "luminance": 0.23684
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B162E4

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

Preview Lab → · Contrast checker → · Palette generator →

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