#B152EE#B152EE

#B152EE is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.8% C 0.229 H 309.3°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B152EE
RGBrgb(177, 82, 238)
HSLhsl(277, 82%, 63%)
HSVhsv(277, 66%, 93%)
CMYKcmyk(25.6%, 65.5%, 0%, 6.7%)
CIE-LABlab(53.55, 63.90, -62.86)
CIE-LCHlch(53.55, 89.63, 315.47°)
OKLaboklab(62.75% 0.1452 -0.1777)
OKLCHoklch(62.75% 0.229 309.3)
XYZxyz(36.5783, 21.5554, 83.1060)
Luminance0.2155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152EE #8FEE52
analogous
#6352EE #B152EE #EE52DD
triadic
#B152EE #EEB152 #52EEB1
tetradic
#B152EE #EE6352 #8FEE52 #52DDEE
square
#B152EE #EE6352 #8FEE52 #52DDEE
split-complementary
#B152EE #DDEE52 #52EE63
monochromatic
#7412B4 #981AE9 #B152EE #CA8AF3 #E3C1F9

Accessibility & contrast

On white

3.95
#B152EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#B152EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152EE
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152EE#FFFFFF#000000##000000
##B152EE1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF3
Deuteranopia (green-blind)
#3881EB
Tritanopia (blue-blind)
#A87399
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b152ee;
/* rgb */ color: rgb(177, 82, 238);
/* oklch */ color: oklch(62.8% 0.229 309.3);
Tailwind
colors: {
  custom: {
    50: '#cd89f4',
    500: '#b152ee',
    950: '#000000',
  },
}
SCSS
$custom: #b152ee;
$custom-light: #cd89f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b152ee",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 238
  },
  "hsl": {
    "h": 276.538,
    "s": 82.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62751,
    "c": 0.22946,
    "h": 309.3
  },
  "luminance": 0.21555
}

Semantic roles & 50–950 ramp

primary
#B152EE
secondary
#C8EAB2
accent
#DE075B
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #B152EE

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

Preview Lab → · Contrast checker → · Palette generator →

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