#B152E6#B152E6

#B152E6 is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.2% C 0.222 H 311.1°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B152E6
RGBrgb(177, 82, 230)
HSLhsl(279, 75%, 61%)
HSVhsv(279, 64%, 90%)
CMYKcmyk(23%, 64.3%, 0%, 9.8%)
CIE-LABlab(53.05, 62.19, -59.17)
CIE-LCHlch(53.05, 85.84, 316.43°)
OKLaboklab(62.23% 0.1457 -0.1669)
OKLCHoklch(62.23% 0.222 311.1)
XYZxyz(35.4290, 21.0957, 77.0531)
Luminance0.2109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152E6 #87E652
analogous
#6752E6 #B152E6 #E652D1
triadic
#B152E6 #E6B152 #52E6B1
tetradic
#B152E6 #E66752 #87E652 #52D1E6
square
#B152E6 #E66752 #87E652 #52D1E6
split-complementary
#B152E6 #D1E652 #52E667
monochromatic
#7318A6 #9820DB #B152E6 #C987EE #E1BDF5

Accessibility & contrast

On white

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

On black

5.22
#B152E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152E6
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152E6#FFFFFF#000000##000000
##B152E61.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEA
Deuteranopia (green-blind)
#4280E3
Tritanopia (blue-blind)
#AA7095
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b152e6;
/* rgb */ color: rgb(177, 82, 230);
/* oklch */ color: oklch(62.2% 0.222 311.1);
Tailwind
colors: {
  custom: {
    50: '#cc88ef',
    500: '#b152e6',
    950: '#000000',
  },
}
SCSS
$custom: #b152e6;
$custom-light: #cc88ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b152e6",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 230
  },
  "hsl": {
    "h": 278.514,
    "s": 74.747,
    "l": 61.176
  },
  "oklch": {
    "l": 0.62234,
    "c": 0.22154,
    "h": 311.1
  },
  "luminance": 0.21095
}

Semantic roles & 50–950 ramp

primary
#B152E6
secondary
#C2E6AE
accent
#D70F56
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B152E6

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

Preview Lab → · Contrast checker → · Palette generator →

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