#B162F7#B162F7

#B162F7 is a light, highly saturated violet. Relative luminance 0.248; OKLCH L 65.3% C 0.217 H 305.6°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#B162F7
RGBrgb(177, 98, 247)
HSLhsl(272, 90%, 68%)
HSVhsv(272, 60%, 97%)
CMYKcmyk(28.3%, 60.3%, 0%, 3.1%)
CIE-LABlab(56.88, 58.31, -62.53)
CIE-LCHlch(56.88, 85.50, 313.00°)
OKLaboklab(65.33% 0.1267 -0.1768)
OKLCHoklch(65.33% 0.217 305.6)
XYZxyz(39.2840, 24.7982, 90.6946)
Luminance0.2480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162F7 #A8F762
analogous
#6662F7 #B162F7 #F762F3
triadic
#B162F7 #F7B162 #62F7B1
tetradic
#B162F7 #F76662 #A8F762 #62F3F7
square
#B162F7 #F76662 #A8F762 #62F3F7
split-complementary
#B162F7 #F3F762 #62F766
monochromatic
#750BD4 #9428F4 #B162F7 #CE9CFA #EBD6FD

Accessibility & contrast

On white

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

On black

5.96
#B162F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162F7
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162F7#FFFFFF#000000##000000
##B162F71.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F86FC
Deuteranopia (green-blind)
#4289F4
Tritanopia (blue-blind)
#A580A4
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b162f7;
/* rgb */ color: rgb(177, 98, 247);
/* oklch */ color: oklch(65.3% 0.217 305.6);
Tailwind
colors: {
  custom: {
    50: '#cc92fb',
    500: '#b162f7',
    950: '#000000',
  },
}
SCSS
$custom: #b162f7;
$custom-light: #cc92fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b162f7",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 247
  },
  "hsl": {
    "h": 271.812,
    "s": 90.303,
    "l": 67.647
  },
  "oklch": {
    "l": 0.65332,
    "c": 0.21749,
    "h": 305.6
  },
  "luminance": 0.24798
}

Semantic roles & 50–950 ramp

primary
#B162F7
secondary
#D9F2C3
accent
#E6006C
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#140D17
muted
#837E85

Preview Lab

Preview with #B162F7

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

Preview Lab → · Contrast checker → · Palette generator →

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