#B162EA#B162EA

#B162EA is a light, highly saturated violet. Relative luminance 0.240; OKLCH L 64.5% C 0.204 H 308.6°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#B162EA
RGBrgb(177, 98, 234)
HSLhsl(275, 76%, 65%)
HSVhsv(275, 58%, 92%)
CMYKcmyk(24.4%, 58.1%, 0%, 8.2%)
CIE-LABlab(56.11, 55.40, -56.51)
CIE-LCHlch(56.11, 79.14, 314.43°)
OKLaboklab(64.53% 0.1268 -0.1592)
OKLCHoklch(64.53% 0.204 308.6)
XYZxyz(37.3475, 24.0236, 80.4955)
Luminance0.2402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162EA #9BEA62
analogous
#6D62EA #B162EA #EA62DF
triadic
#B162EA #EAB162 #62EAB1
tetradic
#B162EA #EA6D62 #9BEA62 #62DFEA
square
#B162EA #EA6D62 #9BEA62 #62DFEA
split-complementary
#B162EA #DFEA62 #62EA6D
monochromatic
#7619B9 #962CE3 #B162EA #CC98F1 #E7CEF8

Accessibility & contrast

On white

3.62
#B162EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#B162EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162EA
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162EA#FFFFFF#000000##000000
##B162EA1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E83EE
Deuteranopia (green-blind)
#4F88E7
Tritanopia (blue-blind)
#A97C9D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b162ea;
/* rgb */ color: rgb(177, 98, 234);
/* oklch */ color: oklch(64.5% 0.204 308.6);
Tailwind
colors: {
  custom: {
    50: '#cc92f1',
    500: '#b162ea',
    950: '#000000',
  },
}
SCSS
$custom: #b162ea;
$custom-light: #cc92f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b162ea",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 234
  },
  "hsl": {
    "h": 274.853,
    "s": 76.404,
    "l": 65.098
  },
  "oklch": {
    "l": 0.64528,
    "c": 0.20351,
    "h": 308.6
  },
  "luminance": 0.24023
}

Semantic roles & 50–950 ramp

primary
#B162EA
secondary
#D0EBBD
accent
#D90D62
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B162EA

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

Preview Lab → · Contrast checker → · Palette generator →

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