#B152E4#B152E4

#B152E4 is a light, highly saturated violet. Relative luminance 0.210; OKLCH L 62.1% C 0.220 H 311.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#B152E4
RGBrgb(177, 82, 228)
HSLhsl(279, 73%, 61%)
HSVhsv(279, 64%, 89%)
CMYKcmyk(22.4%, 64%, 0%, 10.6%)
CIE-LABlab(52.93, 61.77, -58.24)
CIE-LCHlch(52.93, 84.90, 316.69°)
OKLaboklab(62.11% 0.1458 -0.1641)
OKLCHoklch(62.11% 0.22 311.6)
XYZxyz(35.1498, 20.9840, 75.5824)
Luminance0.2098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152E4 #85E452
analogous
#6852E4 #B152E4 #E452CE
triadic
#B152E4 #E4B152 #52E4B1
tetradic
#B152E4 #E46852 #85E452 #52CEE4
square
#B152E4 #E46852 #85E452 #52CEE4
split-complementary
#B152E4 #CEE452 #52E468
monochromatic
#7219A2 #9822D7 #B152E4 #C987EC #E1BCF5

Accessibility & contrast

On white

4.04
#B152E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#B152E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152E4
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152E4#FFFFFF#000000##000000
##B152E41.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE8
Deuteranopia (green-blind)
#4480E1
Tritanopia (blue-blind)
#AB6F94
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b152e4;
/* rgb */ color: rgb(177, 82, 228);
/* oklch */ color: oklch(62.1% 0.220 311.6);
Tailwind
colors: {
  custom: {
    50: '#cc88ed',
    500: '#b152e4',
    950: '#000000',
  },
}
SCSS
$custom: #b152e4;
$custom-light: #cc88ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b152e4",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 279.041,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.62107,
    "c": 0.21956,
    "h": 311.6
  },
  "luminance": 0.20983
}

Semantic roles & 50–950 ramp

primary
#B152E4
secondary
#C1E5AD
accent
#D51055
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B152E4

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

Preview Lab → · Contrast checker → · Palette generator →

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