#B162F9#B162F9

#B162F9 is a light, highly saturated violet. Relative luminance 0.249; OKLCH L 65.5% C 0.220 H 305.2°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B162F9
RGBrgb(177, 98, 249)
HSLhsl(271, 93%, 68%)
HSVhsv(271, 61%, 98%)
CMYKcmyk(28.9%, 60.6%, 0%, 2.4%)
CIE-LABlab(57.00, 58.77, -63.44)
CIE-LCHlch(57.00, 86.48, 312.81°)
OKLaboklab(65.46% 0.1266 -0.1795)
OKLCHoklch(65.46% 0.22 305.2)
XYZxyz(39.5943, 24.9223, 92.3288)
Luminance0.2492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162F9 #AAF962
analogous
#6562F9 #B162F9 #F962F5
triadic
#B162F9 #F9B162 #62F9B1
tetradic
#B162F9 #F96562 #AAF962 #62F5F9
square
#B162F9 #F96562 #AAF962 #62F5F9
split-complementary
#B162F9 #F5F962 #62F965
monochromatic
#7508D8 #9427F7 #B162F9 #CE9DFB #ECD8FE

Accessibility & contrast

On white

3.51
#B162F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#B162F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162F9
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162F9#FFFFFF#000000##000000
##B162F91.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0587FE
Deuteranopia (green-blind)
#4089F6
Tritanopia (blue-blind)
#A481A5
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b162f9;
/* rgb */ color: rgb(177, 98, 249);
/* oklch */ color: oklch(65.5% 0.220 305.2);
Tailwind
colors: {
  custom: {
    50: '#cd92fc',
    500: '#b162f9',
    950: '#000000',
  },
}
SCSS
$custom: #b162f9;
$custom-light: #cd92fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b162f9",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 249
  },
  "hsl": {
    "h": 271.391,
    "s": 92.638,
    "l": 68.039
  },
  "oklch": {
    "l": 0.65459,
    "c": 0.21965,
    "h": 305.2
  },
  "luminance": 0.24922
}

Semantic roles & 50–950 ramp

primary
#B162F9
secondary
#DAF2C4
accent
#E6006D
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140D18
muted
#837E86

Preview Lab

Preview with #B162F9

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

Preview Lab → · Contrast checker → · Palette generator →

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