#B152E9#B152E9

#B152E9 is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.4% C 0.225 H 310.4°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B152E9
RGBrgb(177, 82, 233)
HSLhsl(278, 77%, 62%)
HSVhsv(278, 65%, 91%)
CMYKcmyk(24%, 64.8%, 0%, 8.6%)
CIE-LABlab(53.24, 62.83, -60.56)
CIE-LCHlch(53.24, 87.26, 316.05°)
OKLaboklab(62.43% 0.1456 -0.1709)
OKLCHoklch(62.43% 0.225 310.4)
XYZxyz(35.8539, 21.2657, 79.2909)
Luminance0.2127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152E9 #8AE952
analogous
#6652E9 #B152E9 #E952D6
triadic
#B152E9 #E9B152 #52E9B1
tetradic
#B152E9 #E96652 #8AE952 #52D6E9
square
#B152E9 #E96652 #8AE952 #52D6E9
split-complementary
#B152E9 #D6E952 #52E966
monochromatic
#7416AB #981DE1 #B152E9 #C988F0 #E2BFF7

Accessibility & contrast

On white

4.00
#B152E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#B152E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152E9
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152E9#FFFFFF#000000##000000
##B152E91.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEE
Deuteranopia (green-blind)
#3E81E6
Tritanopia (blue-blind)
#AA7197
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b152e9;
/* rgb */ color: rgb(177, 82, 233);
/* oklch */ color: oklch(62.4% 0.225 310.4);
Tailwind
colors: {
  custom: {
    50: '#cc89f1',
    500: '#b152e9',
    950: '#000000',
  },
}
SCSS
$custom: #b152e9;
$custom-light: #cc89f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b152e9",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 233
  },
  "hsl": {
    "h": 277.748,
    "s": 77.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62426,
    "c": 0.22451,
    "h": 310.4
  },
  "luminance": 0.21265
}

Semantic roles & 50–950 ramp

primary
#B152E9
secondary
#C4E7AF
accent
#DA0C58
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B152E9

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

Preview Lab → · Contrast checker → · Palette generator →

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