#B151E2#B151E2

#B151E2 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.9% C 0.219 H 312.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#B151E2
RGBrgb(177, 81, 226)
HSLhsl(280, 71%, 60%)
HSVhsv(280, 64%, 89%)
CMYKcmyk(21.7%, 64.2%, 0%, 11.4%)
CIE-LABlab(52.65, 61.81, -57.57)
CIE-LCHlch(52.65, 84.46, 317.03°)
OKLaboklab(61.86% 0.147 -0.1622)
OKLCHoklch(61.86% 0.219 312.2)
XYZxyz(34.7989, 20.7239, 74.1037)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151E2 #82E251
analogous
#6851E2 #B151E2 #E251CB
triadic
#B151E2 #E2B151 #51E2B1
tetradic
#B151E2 #E26851 #82E251 #51CBE2
square
#B151E2 #E26851 #82E251 #51CBE2
split-complementary
#B151E2 #CBE251 #51E268
monochromatic
#721A9E #9723D3 #B151E2 #C985EB #E0BAF3

Accessibility & contrast

On white

4.08
#B151E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#B151E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151E2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151E2#FFFFFF#000000##000000
##B151E21.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E6
Deuteranopia (green-blind)
#4580DF
Tritanopia (blue-blind)
#AB6D93
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b151e2;
/* rgb */ color: rgb(177, 81, 226);
/* oklch */ color: oklch(61.9% 0.219 312.2);
Tailwind
colors: {
  custom: {
    50: '#cc88ec',
    500: '#b151e2',
    950: '#000000',
  },
}
SCSS
$custom: #b151e2;
$custom-light: #cc88ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b151e2",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 279.724,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61862,
    "c": 0.21891,
    "h": 312.2
  },
  "luminance": 0.20723
}

Semantic roles & 50–950 ramp

primary
#B151E2
secondary
#BEE3AC
accent
#D31253
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B151E2

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

Preview Lab → · Contrast checker → · Palette generator →

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