#B162EB#B162EB

#B162EB is a light, highly saturated violet. Relative luminance 0.241; OKLCH L 64.6% C 0.205 H 308.3°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#B162EB
RGBrgb(177, 98, 235)
HSLhsl(275, 77%, 65%)
HSVhsv(275, 58%, 92%)
CMYKcmyk(24.7%, 58.3%, 0%, 7.8%)
CIE-LABlab(56.17, 55.62, -56.98)
CIE-LCHlch(56.17, 79.62, 314.31°)
OKLaboklab(64.59% 0.1269 -0.1605)
OKLCHoklch(64.59% 0.205 308.3)
XYZxyz(37.4915, 24.0812, 81.2542)
Luminance0.2408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162EB #9CEB62
analogous
#6D62EB #B162EB #EB62E0
triadic
#B162EB #EBB162 #62EBB1
tetradic
#B162EB #EB6D62 #9CEB62 #62E0EB
square
#B162EB #EB6D62 #9CEB62 #62E0EB
split-complementary
#B162EB #E0EB62 #62EB6D
monochromatic
#7618BB #962CE4 #B162EB #CC98F2 #E7CFF9

Accessibility & contrast

On white

3.61
#B162EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#B162EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162EB
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162EB#FFFFFF#000000##000000
##B162EB1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C83EF
Deuteranopia (green-blind)
#4F88E8
Tritanopia (blue-blind)
#A87C9D
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b162eb;
/* rgb */ color: rgb(177, 98, 235);
/* oklch */ color: oklch(64.6% 0.205 308.3);
Tailwind
colors: {
  custom: {
    50: '#cc92f2',
    500: '#b162eb',
    950: '#000000',
  },
}
SCSS
$custom: #b162eb;
$custom-light: #cc92f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b162eb",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 235
  },
  "hsl": {
    "h": 274.599,
    "s": 77.401,
    "l": 65.294
  },
  "oklch": {
    "l": 0.64588,
    "c": 0.20459,
    "h": 308.3
  },
  "luminance": 0.24081
}

Semantic roles & 50–950 ramp

primary
#B162EB
secondary
#D1EBBD
accent
#DA0C63
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B162EB

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

Preview Lab → · Contrast checker → · Palette generator →

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