#B162DE#B162DE

#B162DE is a light, vivid violet. Relative luminance 0.234; OKLCH L 63.8% C 0.191 H 311.6°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B162DE
RGBrgb(177, 98, 222)
HSLhsl(278, 65%, 63%)
HSVhsv(278, 56%, 87%)
CMYKcmyk(20.3%, 55.9%, 0%, 12.9%)
CIE-LABlab(55.44, 52.77, -50.85)
CIE-LCHlch(55.44, 73.28, 316.06°)
OKLaboklab(63.82% 0.1265 -0.1426)
OKLCHoklch(63.82% 0.191 311.6)
XYZxyz(35.6816, 23.3572, 71.7218)
Luminance0.2336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162DE #8FDE62
analogous
#7362DE #B162DE #DE62CD
triadic
#B162DE #DEB162 #62DEB1
tetradic
#B162DE #DE7362 #8FDE62 #62CDDE
square
#B162DE #DE7362 #8FDE62 #62CDDE
split-complementary
#B162DE #CDDE62 #62DE73
monochromatic
#7422A3 #982FD3 #B162DE #CA95E9 #E3C7F3

Accessibility & contrast

On white

3.70
#B162DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#B162DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162DE
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162DE#FFFFFF#000000##000000
##B162DE1.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C81E2
Deuteranopia (green-blind)
#5986DB
Tritanopia (blue-blind)
#AC7897
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #b162de;
/* rgb */ color: rgb(177, 98, 222);
/* oklch */ color: oklch(63.8% 0.191 311.6);
Tailwind
colors: {
  custom: {
    50: '#cb92e9',
    500: '#b162de',
    950: '#000000',
  },
}
SCSS
$custom: #b162de;
$custom-light: #cb92e9;
$custom-dark: #000000;
JSON
{
  "hex": "#b162de",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 222
  },
  "hsl": {
    "h": 278.226,
    "s": 65.263,
    "l": 62.745
  },
  "oklch": {
    "l": 0.63818,
    "c": 0.19063,
    "h": 311.6
  },
  "luminance": 0.23356
}

Semantic roles & 50–950 ramp

primary
#B162DE
secondary
#C8E4B7
accent
#CD185A
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B162DE

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

Preview Lab → · Contrast checker → · Palette generator →

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