#B252A7#B252A7

#B252A7 is a mid, vivid purple. Relative luminance 0.183; OKLCH L 58.8% C 0.163 H 332.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#B252A7
RGBrgb(178, 82, 167)
HSLhsl(307, 38%, 51%)
HSVhsv(307, 54%, 70%)
CMYKcmyk(0%, 53.9%, 6.2%, 30.2%)
CIE-LABlab(49.85, 50.26, -28.00)
CIE-LCHlch(49.85, 57.53, 330.87°)
OKLaboklab(58.84% 0.1435 -0.0764)
OKLCHoklch(58.84% 0.163 332)
XYZxyz(28.3523, 18.2915, 38.5890)
Luminance0.1829 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252A7 #52B25D
analogous
#8D52B2 #B252A7 #B25277
triadic
#B252A7 #A7B252 #52A7B2
tetradic
#B252A7 #B28D52 #52B25D #5277B2
square
#B252A7 #B28D52 #52B25D #5277B2
split-complementary
#B252A7 #77B252 #52B28D
monochromatic
#5F2A59 #8A3D81 #B252A7 #C57CBD #D8A7D2

Accessibility & contrast

On white

4.51
#B252A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#B252A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252A7
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252A7#FFFFFF#000000##000000
##B252A71.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F6EAA
Deuteranopia (green-blind)
#6B7BA4
Tritanopia (blue-blind)
#B95975
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b252a7;
/* rgb */ color: rgb(178, 82, 167);
/* oklch */ color: oklch(58.8% 0.163 332.0);
Tailwind
colors: {
  custom: {
    50: '#cb87c1',
    500: '#b252a7',
    950: '#000000',
  },
}
SCSS
$custom: #b252a7;
$custom-light: #cb87c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b252a7",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 167
  },
  "hsl": {
    "h": 306.875,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58844,
    "c": 0.16255,
    "h": 332
  },
  "luminance": 0.1829
}

Semantic roles & 50–950 ramp

primary
#B252A7
secondary
#9BC5A0
accent
#CE6759
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#140C12
muted
#827D81

Preview Lab

Preview with #B252A7

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

Preview Lab → · Contrast checker → · Palette generator →

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