#B162F8#B162F8

#B162F8 is a light, highly saturated violet. Relative luminance 0.249; OKLCH L 65.4% C 0.219 H 305.4°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#B162F8
RGBrgb(177, 98, 248)
HSLhsl(272, 91%, 68%)
HSVhsv(272, 60%, 97%)
CMYKcmyk(28.6%, 60.5%, 0%, 2.7%)
CIE-LABlab(56.94, 58.54, -62.98)
CIE-LCHlch(56.94, 85.99, 312.91°)
OKLaboklab(65.4% 0.1267 -0.1781)
OKLCHoklch(65.4% 0.219 305.4)
XYZxyz(39.4387, 24.8601, 91.5095)
Luminance0.2486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162F8 #A9F862
analogous
#6662F8 #B162F8 #F862F4
triadic
#B162F8 #F8B162 #62F8B1
tetradic
#B162F8 #F86662 #A9F862 #62F4F8
square
#B162F8 #F86662 #A9F862 #62F4F8
split-complementary
#B162F8 #F4F862 #62F866
monochromatic
#750AD6 #9427F5 #B162F8 #CE9DFB #EBD7FD

Accessibility & contrast

On white

3.52
#B162F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#B162F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162F8
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162F8#FFFFFF#000000##000000
##B162F81.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B86FD
Deuteranopia (green-blind)
#4189F5
Tritanopia (blue-blind)
#A581A4
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b162f8;
/* rgb */ color: rgb(177, 98, 248);
/* oklch */ color: oklch(65.4% 0.219 305.4);
Tailwind
colors: {
  custom: {
    50: '#cc92fb',
    500: '#b162f8',
    950: '#000000',
  },
}
SCSS
$custom: #b162f8;
$custom-light: #cc92fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b162f8",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 248
  },
  "hsl": {
    "h": 271.6,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.65396,
    "c": 0.21858,
    "h": 305.4
  },
  "luminance": 0.2486
}

Semantic roles & 50–950 ramp

primary
#B162F8
secondary
#DAF2C4
accent
#E6006D
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140D17
muted
#837E85

Preview Lab

Preview with #B162F8

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

Preview Lab → · Contrast checker → · Palette generator →

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