#B162F2#B162F2

#B162F2 is a light, highly saturated violet. Relative luminance 0.245; OKLCH L 65.0% C 0.212 H 306.7°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#B162F2
RGBrgb(177, 98, 242)
HSLhsl(273, 85%, 67%)
HSVhsv(273, 60%, 95%)
CMYKcmyk(26.9%, 59.5%, 0%, 5.1%)
CIE-LABlab(56.58, 57.18, -60.23)
CIE-LCHlch(56.58, 83.05, 313.51°)
OKLaboklab(65.02% 0.1268 -0.17)
OKLCHoklch(65.02% 0.212 306.7)
XYZxyz(38.5228, 24.4937, 86.6855)
Luminance0.2449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162F2 #A3F262
analogous
#6962F2 #B162F2 #F262EB
triadic
#B162F2 #F2B162 #62F2B1
tetradic
#B162F2 #F26962 #A3F262 #62EBF2
square
#B162F2 #F26962 #A3F262 #62EBF2
split-complementary
#B162F2 #EBF262 #62F269
monochromatic
#7611C9 #9529ED #B162F2 #CD9BF7 #E9D3FB

Accessibility & contrast

On white

3.56
#B162F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#B162F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162F2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162F2#FFFFFF#000000##000000
##B162F21.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F85F7
Deuteranopia (green-blind)
#4888EF
Tritanopia (blue-blind)
#A77EA1
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b162f2;
/* rgb */ color: rgb(177, 98, 242);
/* oklch */ color: oklch(65.0% 0.212 306.7);
Tailwind
colors: {
  custom: {
    50: '#cc92f7',
    500: '#b162f2',
    950: '#000000',
  },
}
SCSS
$custom: #b162f2;
$custom-light: #cc92f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b162f2",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 242
  },
  "hsl": {
    "h": 272.917,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.65018,
    "c": 0.21212,
    "h": 306.7
  },
  "luminance": 0.24493
}

Semantic roles & 50–950 ramp

primary
#B162F2
secondary
#D6EFC1
accent
#E10468
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #B162F2

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

Preview Lab → · Contrast checker → · Palette generator →

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