#B162DB#B162DB

#B162DB is a light, vivid violet. Relative luminance 0.232; OKLCH L 63.6% C 0.187 H 312.4°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B162DB
RGBrgb(177, 98, 219)
HSLhsl(279, 63%, 62%)
HSVhsv(279, 55%, 86%)
CMYKcmyk(19.2%, 55.3%, 0%, 14.1%)
CIE-LABlab(55.28, 52.12, -49.41)
CIE-LCHlch(55.28, 71.82, 316.53°)
OKLaboklab(63.65% 0.1264 -0.1384)
OKLCHoklch(63.65% 0.187 312.4)
XYZxyz(35.2831, 23.1978, 69.6231)
Luminance0.2320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162DB #8CDB62
analogous
#7562DB #B162DB #DB62C8
triadic
#B162DB #DBB162 #62DBB1
tetradic
#B162DB #DB7562 #8CDB62 #62C8DB
square
#B162DB #DB7562 #8CDB62 #62C8DB
split-complementary
#B162DB #C8DB62 #62DB75
monochromatic
#74249E #9830D0 #B162DB #CA94E6 #E2C6F2

Accessibility & contrast

On white

3.72
#B162DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#B162DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162DB
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162DB#FFFFFF#000000##000000
##B162DB1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F80DF
Deuteranopia (green-blind)
#5B86D8
Tritanopia (blue-blind)
#AD7795
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b162db;
/* rgb */ color: rgb(177, 98, 219);
/* oklch */ color: oklch(63.6% 0.187 312.4);
Tailwind
colors: {
  custom: {
    50: '#cb92e7',
    500: '#b162db',
    950: '#000000',
  },
}
SCSS
$custom: #b162db;
$custom-light: #cb92e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b162db",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 219
  },
  "hsl": {
    "h": 279.174,
    "s": 62.694,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63646,
    "c": 0.18742,
    "h": 312.4
  },
  "luminance": 0.23197
}

Semantic roles & 50–950 ramp

primary
#B162DB
secondary
#C6E3B6
accent
#CA1B58
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B162DB

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

Preview Lab → · Contrast checker → · Palette generator →

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