#B257BA#B257BA

#B257BA is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.5% C 0.172 H 324.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#B257BA
RGBrgb(178, 87, 186)
HSLhsl(295, 42%, 54%)
HSVhsv(295, 53%, 73%)
CMYKcmyk(4.3%, 53.2%, 0%, 27.1%)
CIE-LABlab(51.64, 51.24, -36.28)
CIE-LCHlch(51.64, 62.78, 324.70°)
OKLaboklab(60.45% 0.1394 -0.1002)
OKLCHoklch(60.45% 0.172 324.3)
XYZxyz(30.6304, 19.8281, 48.6586)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257BA #5FBA57
analogous
#8057BA #B257BA #BA5790
triadic
#B257BA #BAB257 #57BAB2
tetradic
#B257BA #BA8057 #5FBA57 #5790BA
square
#B257BA #BA8057 #5FBA57 #5790BA
split-complementary
#B257BA #90BA57 #57BA80
monochromatic
#662C6B #8F3E96 #B257BA #C682CC #DAAEDE

Accessibility & contrast

On white

4.23
#B257BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#B257BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257BA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257BA#FFFFFF#000000##000000
##B257BA1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4974BD
Deuteranopia (green-blind)
#667FB7
Tritanopia (blue-blind)
#B56480
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b257ba;
/* rgb */ color: rgb(178, 87, 186);
/* oklch */ color: oklch(60.5% 0.172 324.3);
Tailwind
colors: {
  custom: {
    50: '#cb8acf',
    500: '#b257ba',
    950: '#000000',
  },
}
SCSS
$custom: #b257ba;
$custom-light: #cb8acf;
$custom-dark: #000000;
JSON
{
  "hex": "#b257ba",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 295.152,
    "s": 41.772,
    "l": 53.529
  },
  "oklch": {
    "l": 0.60454,
    "c": 0.17164,
    "h": 324.3
  },
  "luminance": 0.19827
}

Semantic roles & 50–950 ramp

primary
#B257BA
secondary
#A5CCA1
accent
#D25660
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B257BA

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

Preview Lab → · Contrast checker → · Palette generator →

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