#B162F1#B162F1

#B162F1 is a light, highly saturated violet. Relative luminance 0.244; OKLCH L 65.0% C 0.211 H 306.9°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#B162F1
RGBrgb(177, 98, 241)
HSLhsl(273, 84%, 66%)
HSVhsv(273, 59%, 95%)
CMYKcmyk(26.6%, 59.3%, 0%, 5.5%)
CIE-LABlab(56.52, 56.96, -59.77)
CIE-LCHlch(56.52, 82.56, 313.62°)
OKLaboklab(64.96% 0.1268 -0.1687)
OKLCHoklch(64.96% 0.211 306.9)
XYZxyz(38.3730, 24.4338, 85.8967)
Luminance0.2443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162F1 #A2F162
analogous
#6A62F1 #B162F1 #F162EA
triadic
#B162F1 #F1B162 #62F1B1
tetradic
#B162F1 #F16A62 #A2F162 #62EAF1
square
#B162F1 #F16A62 #A2F162 #62EAF1
split-complementary
#B162F1 #EAF162 #62F16A
monochromatic
#7612C7 #952AEC #B162F1 #CD9AF6 #E9D2FB

Accessibility & contrast

On white

3.57
#B162F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#B162F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162F1
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162F1#FFFFFF#000000##000000
##B162F11.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2185F6
Deuteranopia (green-blind)
#4988EE
Tritanopia (blue-blind)
#A77EA0
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b162f1;
/* rgb */ color: rgb(177, 98, 241);
/* oklch */ color: oklch(65.0% 0.211 306.9);
Tailwind
colors: {
  custom: {
    50: '#cc92f6',
    500: '#b162f1',
    950: '#000000',
  },
}
SCSS
$custom: #b162f1;
$custom-light: #cc92f6;
$custom-dark: #000000;
JSON
{
  "hex": "#b162f1",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 241
  },
  "hsl": {
    "h": 273.147,
    "s": 83.626,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64956,
    "c": 0.21104,
    "h": 306.9
  },
  "luminance": 0.24433
}

Semantic roles & 50–950 ramp

primary
#B162F1
secondary
#D5EFC0
accent
#E00567
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #B162F1

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

Preview Lab → · Contrast checker → · Palette generator →

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