#B162ED#B162ED

#B162ED is a light, highly saturated violet. Relative luminance 0.242; OKLCH L 64.7% C 0.207 H 307.8°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#B162ED
RGBrgb(177, 98, 237)
HSLhsl(274, 79%, 66%)
HSVhsv(274, 59%, 93%)
CMYKcmyk(25.3%, 58.6%, 0%, 7.1%)
CIE-LABlab(56.28, 56.06, -57.91)
CIE-LCHlch(56.28, 80.60, 314.07°)
OKLaboklab(64.71% 0.1269 -0.1632)
OKLCHoklch(64.71% 0.207 307.8)
XYZxyz(37.7821, 24.1974, 82.7845)
Luminance0.2420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162ED #9EED62
analogous
#6B62ED #B162ED #ED62E3
triadic
#B162ED #EDB162 #62EDB1
tetradic
#B162ED #ED6B62 #9EED62 #62E3ED
square
#B162ED #ED6B62 #9EED62 #62E3ED
split-complementary
#B162ED #E3ED62 #62ED6B
monochromatic
#7616BF #962BE7 #B162ED #CC99F3 #E8D0FA

Accessibility & contrast

On white

3.60
#B162ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#B162ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162ED
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162ED#FFFFFF#000000##000000
##B162ED1.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2984F1
Deuteranopia (green-blind)
#4D88EA
Tritanopia (blue-blind)
#A87D9E
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b162ed;
/* rgb */ color: rgb(177, 98, 237);
/* oklch */ color: oklch(64.7% 0.207 307.8);
Tailwind
colors: {
  custom: {
    50: '#cc92f3',
    500: '#b162ed',
    950: '#000000',
  },
}
SCSS
$custom: #b162ed;
$custom-light: #cc92f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b162ed",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 237
  },
  "hsl": {
    "h": 274.101,
    "s": 79.429,
    "l": 65.686
  },
  "oklch": {
    "l": 0.6471,
    "c": 0.20674,
    "h": 307.8
  },
  "luminance": 0.24197
}

Semantic roles & 50–950 ramp

primary
#B162ED
secondary
#D2EDBE
accent
#DC0A64
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B162ED

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

Preview Lab → · Contrast checker → · Palette generator →

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