#B162E7#B162E7

#B162E7 is a light, highly saturated violet. Relative luminance 0.239; OKLCH L 64.3% C 0.200 H 309.3°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#B162E7
RGBrgb(177, 98, 231)
HSLhsl(276, 73%, 65%)
HSVhsv(276, 58%, 91%)
CMYKcmyk(23.4%, 57.6%, 0%, 9.4%)
CIE-LABlab(55.94, 54.73, -55.11)
CIE-LCHlch(55.94, 77.67, 314.81°)
OKLaboklab(64.35% 0.1268 -0.155)
OKLCHoklch(64.35% 0.2 309.3)
XYZxyz(36.9201, 23.8526, 78.2449)
Luminance0.2385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162E7 #98E762
analogous
#6F62E7 #B162E7 #E762DB
triadic
#B162E7 #E7B162 #62E7B1
tetradic
#B162E7 #E76F62 #98E762 #62DBE7
square
#B162E7 #E76F62 #98E762 #62DBE7
split-complementary
#B162E7 #DBE762 #62E76F
monochromatic
#761BB3 #972DDF #B162E7 #CB97EF #E6CCF7

Accessibility & contrast

On white

3.64
#B162E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#B162E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162E7
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162E7#FFFFFF#000000##000000
##B162E71.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3283EB
Deuteranopia (green-blind)
#5287E4
Tritanopia (blue-blind)
#AA7B9B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b162e7;
/* rgb */ color: rgb(177, 98, 231);
/* oklch */ color: oklch(64.3% 0.200 309.3);
Tailwind
colors: {
  custom: {
    50: '#cc92ef',
    500: '#b162e7',
    950: '#000000',
  },
}
SCSS
$custom: #b162e7;
$custom-light: #cc92ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b162e7",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 231
  },
  "hsl": {
    "h": 275.639,
    "s": 73.481,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64347,
    "c": 0.20029,
    "h": 309.3
  },
  "luminance": 0.23852
}

Semantic roles & 50–950 ramp

primary
#B162E7
secondary
#CEE9BB
accent
#D61060
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B162E7

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

Preview Lab → · Contrast checker → · Palette generator →

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