#B162EF#B162EF

#B162EF is a light, highly saturated violet. Relative luminance 0.243; OKLCH L 64.8% C 0.209 H 307.4°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B162EF
RGBrgb(177, 98, 239)
HSLhsl(274, 82%, 66%)
HSVhsv(274, 59%, 94%)
CMYKcmyk(25.9%, 59%, 0%, 6.3%)
CIE-LABlab(56.40, 56.51, -58.84)
CIE-LCHlch(56.40, 81.58, 313.84°)
OKLaboklab(64.83% 0.1268 -0.166)
OKLCHoklch(64.83% 0.209 307.4)
XYZxyz(38.0759, 24.3149, 84.3320)
Luminance0.2431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162EF #A0EF62
analogous
#6A62EF #B162EF #EF62E6
triadic
#B162EF #EFB162 #62EFB1
tetradic
#B162EF #EF6A62 #A0EF62 #62E6EF
square
#B162EF #EF6A62 #A0EF62 #62E6EF
split-complementary
#B162EF #E6EF62 #62EF6A
monochromatic
#7614C3 #952AE9 #B162EF #CD9AF5 #E8D1FA

Accessibility & contrast

On white

3.58
#B162EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#B162EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162EF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162EF#FFFFFF#000000##000000
##B162EF1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2584F3
Deuteranopia (green-blind)
#4B88EC
Tritanopia (blue-blind)
#A77D9F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b162ef;
/* rgb */ color: rgb(177, 98, 239);
/* oklch */ color: oklch(64.8% 0.209 307.4);
Tailwind
colors: {
  custom: {
    50: '#cc92f5',
    500: '#b162ef',
    950: '#000000',
  },
}
SCSS
$custom: #b162ef;
$custom-light: #cc92f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b162ef",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 239
  },
  "hsl": {
    "h": 273.617,
    "s": 81.503,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64833,
    "c": 0.20889,
    "h": 307.4
  },
  "luminance": 0.24314
}

Semantic roles & 50–950 ramp

primary
#B162EF
secondary
#D4EEBF
accent
#DE0866
background
#FCF9FF
surface
#F9F1FE
border
#D2CBD6
text
#140D17
muted
#827E85

Preview Lab

Preview with #B162EF

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

Preview Lab → · Contrast checker → · Palette generator →

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