#B162E8#B162E8

#B162E8 is a light, highly saturated violet. Relative luminance 0.239; OKLCH L 64.4% C 0.201 H 309.0°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#B162E8
RGBrgb(177, 98, 232)
HSLhsl(275, 74%, 65%)
HSVhsv(275, 58%, 91%)
CMYKcmyk(23.7%, 57.8%, 0%, 9%)
CIE-LABlab(56.00, 54.95, -55.58)
CIE-LCHlch(56.00, 78.16, 314.68°)
OKLaboklab(64.41% 0.1268 -0.1564)
OKLCHoklch(64.41% 0.201 309)
XYZxyz(37.0618, 23.9093, 78.9908)
Luminance0.2391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162E8 #99E862
analogous
#6E62E8 #B162E8 #E862DC
triadic
#B162E8 #E8B162 #62E8B1
tetradic
#B162E8 #E86E62 #99E862 #62DCE8
square
#B162E8 #E86E62 #99E862 #62DCE8
split-complementary
#B162E8 #DCE862 #62E86E
monochromatic
#761BB5 #962DE0 #B162E8 #CC97F0 #E6CDF8

Accessibility & contrast

On white

3.63
#B162E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#B162E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162E8
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162E8#FFFFFF#000000##000000
##B162E81.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3183EC
Deuteranopia (green-blind)
#5187E5
Tritanopia (blue-blind)
#A97B9C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b162e8;
/* rgb */ color: rgb(177, 98, 232);
/* oklch */ color: oklch(64.4% 0.201 309.0);
Tailwind
colors: {
  custom: {
    50: '#cc92f0',
    500: '#b162e8',
    950: '#000000',
  },
}
SCSS
$custom: #b162e8;
$custom-light: #cc92f0;
$custom-dark: #000000;
JSON
{
  "hex": "#b162e8",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 232
  },
  "hsl": {
    "h": 275.373,
    "s": 74.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.64407,
    "c": 0.20136,
    "h": 309
  },
  "luminance": 0.23909
}

Semantic roles & 50–950 ramp

primary
#B162E8
secondary
#CFEABC
accent
#D70F61
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B162E8

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

Preview Lab → · Contrast checker → · Palette generator →

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