#B152F7#B152F7

#B152F7 is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.3% C 0.238 H 307.3°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B152F7
RGBrgb(177, 82, 247)
HSLhsl(275, 91%, 65%)
HSVhsv(275, 67%, 97%)
CMYKcmyk(28.3%, 66.8%, 0%, 3.1%)
CIE-LABlab(54.13, 65.84, -66.95)
CIE-LCHlch(54.13, 93.90, 314.52°)
OKLaboklab(63.35% 0.1444 -0.1897)
OKLCHoklch(63.35% 0.238 307.3)
XYZxyz(37.9337, 22.0976, 90.2445)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B152F7 #98F752
analogous
#5E52F7 #B152F7 #F752EB
triadic
#B152F7 #F7B152 #52F7B1
tetradic
#B152F7 #F75E52 #98F752 #52EBF7
square
#B152F7 #F75E52 #98F752 #52EBF7
split-complementary
#B152F7 #EBF752 #52F75E
monochromatic
#7609C5 #9718F4 #B152F7 #CB8CFA #E6C7FC

Accessibility & contrast

On white

3.87
#B152F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#B152F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B152F7
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B152F7#FFFFFF#000000##000000
##B152F71.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFC
Deuteranopia (green-blind)
#2982F3
Tritanopia (blue-blind)
#A6769E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b152f7;
/* rgb */ color: rgb(177, 82, 247);
/* oklch */ color: oklch(63.3% 0.238 307.3);
Tailwind
colors: {
  custom: {
    50: '#cd89fb',
    500: '#b152f7',
    950: '#000000',
  },
}
SCSS
$custom: #b152f7;
$custom-light: #cd89fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b152f7",
  "rgb": {
    "r": 177,
    "g": 82,
    "b": 247
  },
  "hsl": {
    "h": 274.545,
    "s": 91.16,
    "l": 64.51
  },
  "oklch": {
    "l": 0.6335,
    "c": 0.2384,
    "h": 307.3
  },
  "luminance": 0.22097
}

Semantic roles & 50–950 ramp

primary
#B152F7
secondary
#CEEFB6
accent
#E60061
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B152F7

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

Preview Lab → · Contrast checker → · Palette generator →

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