#B162DF#B162DF

#B162DF is a light, vivid violet. Relative luminance 0.234; OKLCH L 63.9% C 0.192 H 311.3°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#B162DF
RGBrgb(177, 98, 223)
HSLhsl(278, 66%, 63%)
HSVhsv(278, 56%, 87%)
CMYKcmyk(20.6%, 56.1%, 0%, 12.5%)
CIE-LABlab(55.49, 52.99, -51.32)
CIE-LCHlch(55.49, 73.77, 315.91°)
OKLaboklab(63.88% 0.1266 -0.144)
OKLCHoklch(63.88% 0.192 311.3)
XYZxyz(35.8160, 23.4110, 72.4298)
Luminance0.2341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162DF #90DF62
analogous
#7262DF #B162DF #DF62CF
triadic
#B162DF #DFB162 #62DFB1
tetradic
#B162DF #DF7262 #90DF62 #62CFDF
square
#B162DF #DF7262 #90DF62 #62CFDF
split-complementary
#B162DF #CFDF62 #62DF72
monochromatic
#7522A5 #982FD5 #B162DF #CA95E9 #E4C8F4

Accessibility & contrast

On white

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

On black

5.68
#B162DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162DF
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162DF#FFFFFF#000000##000000
##B162DF1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B81E3
Deuteranopia (green-blind)
#5886DC
Tritanopia (blue-blind)
#AC7897
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #b162df;
/* rgb */ color: rgb(177, 98, 223);
/* oklch */ color: oklch(63.9% 0.192 311.3);
Tailwind
colors: {
  custom: {
    50: '#cb92e9',
    500: '#b162df',
    950: '#000000',
  },
}
SCSS
$custom: #b162df;
$custom-light: #cb92e9;
$custom-dark: #000000;
JSON
{
  "hex": "#b162df",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 223
  },
  "hsl": {
    "h": 277.92,
    "s": 66.138,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63876,
    "c": 0.1917,
    "h": 311.3
  },
  "luminance": 0.2341
}

Semantic roles & 50–950 ramp

primary
#B162DF
secondary
#C8E5B8
accent
#CE175B
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B162DF

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

Preview Lab → · Contrast checker → · Palette generator →

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