#B152E7#B152E7

#B152E7 is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.3% C 0.223 H 310.9°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B152E7
RGBrgb(177, 82, 231)
HSLhsl(278, 76%, 61%)
HSVhsv(278, 65%, 91%)
CMYKcmyk(23.4%, 64.5%, 0%, 9.4%)
CIE-LABlab(53.12, 62.41, -59.63)
CIE-LCHlch(53.12, 86.32, 316.30°)
OKLaboklab(62.3% 0.1457 -0.1682)
OKLCHoklch(62.3% 0.223 310.9)
XYZxyz(35.5698, 21.1520, 77.7948)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152E7 #88E752
analogous
#6752E7 #B152E7 #E752D3
triadic
#B152E7 #E7B152 #52E7B1
tetradic
#B152E7 #E76752 #88E752 #52D3E7
square
#B152E7 #E76752 #88E752 #52D3E7
split-complementary
#B152E7 #D3E752 #52E767
monochromatic
#7317A7 #981FDD #B152E7 #C988EE #E1BDF6

Accessibility & contrast

On white

4.02
#B152E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#B152E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152E7
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152E7#FFFFFF#000000##000000
##B152E71.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEC
Deuteranopia (green-blind)
#4081E4
Tritanopia (blue-blind)
#AA7096
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b152e7;
/* rgb */ color: rgb(177, 82, 231);
/* oklch */ color: oklch(62.3% 0.223 310.9);
Tailwind
colors: {
  custom: {
    50: '#cc88ef',
    500: '#b152e7',
    950: '#000000',
  },
}
SCSS
$custom: #b152e7;
$custom-light: #cc88ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b152e7",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 278.255,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62298,
    "c": 0.22253,
    "h": 310.9
  },
  "luminance": 0.21151
}

Semantic roles & 50–950 ramp

primary
#B152E7
secondary
#C3E6AF
accent
#D80E57
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B152E7

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

Preview Lab → · Contrast checker → · Palette generator →

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