#B162EC#B162EC

#B162EC is a light, highly saturated violet. Relative luminance 0.241; OKLCH L 64.6% C 0.206 H 308.1°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#B162EC
RGBrgb(177, 98, 236)
HSLhsl(274, 78%, 65%)
HSVhsv(274, 58%, 93%)
CMYKcmyk(25%, 58.5%, 0%, 7.5%)
CIE-LABlab(56.23, 55.84, -57.45)
CIE-LCHlch(56.23, 80.11, 314.19°)
OKLaboklab(64.65% 0.1269 -0.1619)
OKLCHoklch(64.65% 0.206 308.1)
XYZxyz(37.6364, 24.1391, 82.0172)
Luminance0.2414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162EC #9DEC62
analogous
#6C62EC #B162EC #EC62E2
triadic
#B162EC #ECB162 #62ECB1
tetradic
#B162EC #EC6C62 #9DEC62 #62E2EC
square
#B162EC #EC6C62 #9DEC62 #62E2EC
split-complementary
#B162EC #E2EC62 #62EC6C
monochromatic
#7617BD #962BE5 #B162EC #CC99F3 #E7CFF9

Accessibility & contrast

On white

3.60
#B162EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#B162EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162EC
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162EC#FFFFFF#000000##000000
##B162EC1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B84F0
Deuteranopia (green-blind)
#4E88E9
Tritanopia (blue-blind)
#A87C9E
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b162ec;
/* rgb */ color: rgb(177, 98, 236);
/* oklch */ color: oklch(64.6% 0.206 308.1);
Tailwind
colors: {
  custom: {
    50: '#cc92f3',
    500: '#b162ec',
    950: '#000000',
  },
}
SCSS
$custom: #b162ec;
$custom-light: #cc92f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b162ec",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 236
  },
  "hsl": {
    "h": 274.348,
    "s": 78.409,
    "l": 65.49
  },
  "oklch": {
    "l": 0.64649,
    "c": 0.20566,
    "h": 308.1
  },
  "luminance": 0.24139
}

Semantic roles & 50–950 ramp

primary
#B162EC
secondary
#D2ECBE
accent
#DB0B64
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B162EC

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

Preview Lab → · Contrast checker → · Palette generator →

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