#B162F5#B162F5

#B162F5 is a light, highly saturated violet. Relative luminance 0.247; OKLCH L 65.2% C 0.215 H 306.1°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#B162F5
RGBrgb(177, 98, 245)
HSLhsl(272, 88%, 67%)
HSVhsv(272, 60%, 96%)
CMYKcmyk(27.8%, 60%, 0%, 3.9%)
CIE-LABlab(56.76, 57.86, -61.61)
CIE-LCHlch(56.76, 84.52, 313.20°)
OKLaboklab(65.21% 0.1268 -0.1741)
OKLCHoklch(65.21% 0.215 306.1)
XYZxyz(38.9771, 24.6754, 89.0780)
Luminance0.2467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162F5 #A6F562
analogous
#6862F5 #B162F5 #F562EF
triadic
#B162F5 #F5B162 #62F5B1
tetradic
#B162F5 #F56862 #A6F562 #62EFF5
square
#B162F5 #F56862 #A6F562 #62EFF5
split-complementary
#B162F5 #EFF562 #62F568
monochromatic
#760DCF #9428F1 #B162F5 #CE9CF9 #EAD5FC

Accessibility & contrast

On white

3.54
#B162F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#B162F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162F5
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162F5#FFFFFF#000000##000000
##B162F51.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1786FA
Deuteranopia (green-blind)
#4489F2
Tritanopia (blue-blind)
#A67FA3
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b162f5;
/* rgb */ color: rgb(177, 98, 245);
/* oklch */ color: oklch(65.2% 0.215 306.1);
Tailwind
colors: {
  custom: {
    50: '#cc92f9',
    500: '#b162f5',
    950: '#000000',
  },
}
SCSS
$custom: #b162f5;
$custom-light: #cc92f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b162f5",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 245
  },
  "hsl": {
    "h": 272.245,
    "s": 88.024,
    "l": 67.255
  },
  "oklch": {
    "l": 0.65206,
    "c": 0.21534,
    "h": 306.1
  },
  "luminance": 0.24675
}

Semantic roles & 50–950 ramp

primary
#B162F5
secondary
#D8F1C2
accent
#E5016A
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#140D17
muted
#837E85

Preview Lab

Preview with #B162F5

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

Preview Lab → · Contrast checker → · Palette generator →

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