#B162EE#B162EE

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

Color values

HEX#B162EE
RGBrgb(177, 98, 238)
HSLhsl(274, 80%, 66%)
HSVhsv(274, 59%, 93%)
CMYKcmyk(25.6%, 58.8%, 0%, 6.7%)
CIE-LABlab(56.34, 56.29, -58.38)
CIE-LCHlch(56.34, 81.09, 313.96°)
OKLaboklab(64.77% 0.1269 -0.1646)
OKLCHoklch(64.77% 0.208 307.6)
XYZxyz(37.9286, 24.2560, 83.5561)
Luminance0.2426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162EE #9FEE62
analogous
#6B62EE #B162EE #EE62E5
triadic
#B162EE #EEB162 #62EEB1
tetradic
#B162EE #EE6B62 #9FEE62 #62E5EE
square
#B162EE #EE6B62 #9FEE62 #62E5EE
split-complementary
#B162EE #E5EE62 #62EE6B
monochromatic
#7615C1 #962BE8 #B162EE #CC99F4 #E8D0FA

Accessibility & contrast

On white

3.59
#B162EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#B162EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162EE
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162EE#FFFFFF#000000##000000
##B162EE1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2784F2
Deuteranopia (green-blind)
#4C88EB
Tritanopia (blue-blind)
#A87D9F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b162ee;
/* rgb */ color: rgb(177, 98, 238);
/* oklch */ color: oklch(64.8% 0.208 307.6);
Tailwind
colors: {
  custom: {
    50: '#cc92f4',
    500: '#b162ee',
    950: '#000000',
  },
}
SCSS
$custom: #b162ee;
$custom-light: #cc92f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b162ee",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 238
  },
  "hsl": {
    "h": 273.857,
    "s": 80.46,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64771,
    "c": 0.20782,
    "h": 307.6
  },
  "luminance": 0.24256
}

Semantic roles & 50–950 ramp

primary
#B162EE
secondary
#D3EDBF
accent
#DD0965
background
#FCF9FF
surface
#F9F1FE
border
#D2CBD6
text
#140D17
muted
#827E85

Preview Lab

Preview with #B162EE

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

Preview Lab → · Contrast checker → · Palette generator →

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