#B162F0#B162F0

#B162F0 is a light, highly saturated violet. Relative luminance 0.244; OKLCH L 64.9% C 0.210 H 307.2°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#B162F0
RGBrgb(177, 98, 240)
HSLhsl(273, 83%, 66%)
HSVhsv(273, 59%, 94%)
CMYKcmyk(26.3%, 59.2%, 0%, 5.9%)
CIE-LABlab(56.46, 56.74, -59.30)
CIE-LCHlch(56.46, 82.07, 313.73°)
OKLaboklab(64.89% 0.1268 -0.1673)
OKLCHoklch(64.89% 0.21 307.2)
XYZxyz(38.2241, 24.3742, 85.1122)
Luminance0.2437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162F0 #A1F062
analogous
#6A62F0 #B162F0 #F062E8
triadic
#B162F0 #F0B162 #62F0B1
tetradic
#B162F0 #F06A62 #A1F062 #62E8F0
square
#B162F0 #F06A62 #A1F062 #62E8F0
split-complementary
#B162F0 #E8F062 #62F06A
monochromatic
#7613C5 #952AEB #B162F0 #CD9AF5 #E9D2FB

Accessibility & contrast

On white

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

On black

5.87
#B162F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162F0
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162F0#FFFFFF#000000##000000
##B162F01.003.575.875.87
#FFFFFF3.571.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2385F5
Deuteranopia (green-blind)
#4A88ED
Tritanopia (blue-blind)
#A77EA0
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b162f0;
/* rgb */ color: rgb(177, 98, 240);
/* oklch */ color: oklch(64.9% 0.210 307.2);
Tailwind
colors: {
  custom: {
    50: '#cc92f6',
    500: '#b162f0',
    950: '#000000',
  },
}
SCSS
$custom: #b162f0;
$custom-light: #cc92f6;
$custom-dark: #000000;
JSON
{
  "hex": "#b162f0",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 240
  },
  "hsl": {
    "h": 273.38,
    "s": 82.558,
    "l": 66.275
  },
  "oklch": {
    "l": 0.64894,
    "c": 0.20997,
    "h": 307.2
  },
  "luminance": 0.24374
}

Semantic roles & 50–950 ramp

primary
#B162F0
secondary
#D4EEC0
accent
#DF0767
background
#FCF9FF
surface
#F9F1FE
border
#D2CBD6
text
#140D17
muted
#827E85

Preview Lab

Preview with #B162F0

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

Preview Lab → · Contrast checker → · Palette generator →

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