#B252AF#B252AF

#B252AF is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.2% C 0.169 H 328.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B252AF
RGBrgb(178, 82, 175)
HSLhsl(302, 38%, 51%)
HSVhsv(302, 54%, 70%)
CMYKcmyk(0%, 53.9%, 1.7%, 30.2%)
CIE-LABlab(50.21, 51.66, -32.13)
CIE-LCHlch(50.21, 60.83, 328.12°)
OKLaboklab(59.23% 0.1448 -0.0882)
OKLCHoklch(59.23% 0.169 328.7)
XYZxyz(29.1149, 18.5965, 42.6051)
Luminance0.1860 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B252AF #52B255
analogous
#8552B2 #B252AF #B2527F
triadic
#B252AF #AFB252 #52AFB2
tetradic
#B252AF #B28552 #52B255 #527FB2
square
#B252AF #B28552 #52B255 #527FB2
split-complementary
#B252AF #7FB252 #52B285
monochromatic
#5F2A5E #8A3D87 #B252AF #C57CC3 #D8A7D6

Accessibility & contrast

On white

4.45
#B252AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#B252AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B252AF
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B252AF#FFFFFF#000000##000000
##B252AF1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6FB2
Deuteranopia (green-blind)
#687CAC
Tritanopia (blue-blind)
#B75C79
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b252af;
/* rgb */ color: rgb(178, 82, 175);
/* oklch */ color: oklch(59.2% 0.169 328.7);
Tailwind
colors: {
  custom: {
    50: '#cb87c7',
    500: '#b252af',
    950: '#000000',
  },
}
SCSS
$custom: #b252af;
$custom-light: #cb87c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b252af",
  "rgb": {
    "r": 178,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 301.875,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59232,
    "c": 0.16949,
    "h": 328.7
  },
  "luminance": 0.18595
}

Semantic roles & 50–950 ramp

primary
#B252AF
secondary
#9BC59C
accent
#CE5D59
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C13
muted
#827D82

Preview Lab

Preview with #B252AF

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

Preview Lab → · Contrast checker → · Palette generator →

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