#B251AA#B251AA

#B251AA is a mid, vivid purple. Relative luminance 0.183; OKLCH L 58.9% C 0.167 H 330.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B251AA
RGBrgb(178, 81, 170)
HSLhsl(305, 39%, 51%)
HSVhsv(305, 54%, 70%)
CMYKcmyk(0%, 54.5%, 4.5%, 30.2%)
CIE-LABlab(49.80, 51.26, -29.84)
CIE-LCHlch(49.80, 59.31, 329.80°)
OKLaboklab(58.86% 0.1454 -0.0816)
OKLCHoklch(58.86% 0.167 330.7)
XYZxyz(28.5580, 18.2540, 40.0416)
Luminance0.1825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251AA #51B259
analogous
#8951B2 #B251AA #B25179
triadic
#B251AA #AAB251 #51AAB2
tetradic
#B251AA #B28951 #51B259 #5179B2
square
#B251AA #B28951 #51B259 #5179B2
split-complementary
#B251AA #79B251 #51B289
monochromatic
#5F2A5A #893D83 #B251AA #C57BBF #D8A6D3

Accessibility & contrast

On white

4.52
#B251AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#B251AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251AA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251AA#FFFFFF#000000##000000
##B251AA1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6EAD
Deuteranopia (green-blind)
#6A7BA7
Tritanopia (blue-blind)
#B85976
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b251aa;
/* rgb */ color: rgb(178, 81, 170);
/* oklch */ color: oklch(58.9% 0.167 330.7);
Tailwind
colors: {
  custom: {
    50: '#cb86c3',
    500: '#b251aa',
    950: '#000000',
  },
}
SCSS
$custom: #b251aa;
$custom-light: #cb86c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b251aa",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 304.948,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58855,
    "c": 0.16671,
    "h": 330.7
  },
  "luminance": 0.18252
}

Semantic roles & 50–950 ramp

primary
#B251AA
secondary
#9AC59D
accent
#CF6359
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C12
muted
#827D81

Preview Lab

Preview with #B251AA

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

Preview Lab → · Contrast checker → · Palette generator →

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