#B152E2#B152E2

#B152E2 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 62.0% C 0.218 H 312.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B152E2
RGBrgb(177, 82, 226)
HSLhsl(280, 71%, 60%)
HSVhsv(280, 64%, 89%)
CMYKcmyk(21.7%, 63.7%, 0%, 11.4%)
CIE-LABlab(52.81, 61.35, -57.30)
CIE-LCHlch(52.81, 83.95, 316.95°)
OKLaboklab(61.98% 0.1459 -0.1614)
OKLCHoklch(61.98% 0.218 312.1)
XYZxyz(34.8737, 20.8736, 74.1287)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152E2 #83E252
analogous
#6952E2 #B152E2 #E252CB
triadic
#B152E2 #E2B152 #52E2B1
tetradic
#B152E2 #E26952 #83E252 #52CBE2
square
#B152E2 #E26952 #83E252 #52CBE2
split-complementary
#B152E2 #CBE252 #52E269
monochromatic
#721B9F #9723D3 #B152E2 #C986EB #E0BBF4

Accessibility & contrast

On white

4.06
#B152E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#B152E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152E2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152E2#FFFFFF#000000##000000
##B152E21.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b152e2;
/* rgb */ color: rgb(177, 82, 226);
/* oklch */ color: oklch(62.0% 0.218 312.1);
Tailwind
colors: {
  custom: {
    50: '#cc88ec',
    500: '#b152e2',
    950: '#000000',
  },
}
SCSS
$custom: #b152e2;
$custom-light: #cc88ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b152e2",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 279.583,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61981,
    "c": 0.21758,
    "h": 312.1
  },
  "luminance": 0.20873
}

Semantic roles & 50–950 ramp

primary
#B152E2
secondary
#BFE3AC
accent
#D31254
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B152E2

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

Preview Lab → · Contrast checker → · Palette generator →

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