#B257D2#B257D2

#B257D2 is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.8% C 0.195 H 316.4°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#B257D2
RGBrgb(178, 87, 210)
HSLhsl(284, 58%, 58%)
HSVhsv(284, 59%, 82%)
CMYKcmyk(15.2%, 58.6%, 0%, 17.6%)
CIE-LABlab(52.88, 55.94, -48.11)
CIE-LCHlch(52.88, 73.79, 319.30°)
OKLaboklab(61.76% 0.1412 -0.1345)
OKLCHoklch(61.76% 0.195 316.4)
XYZxyz(33.3994, 20.9357, 63.2419)
Luminance0.2094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257D2 #77D257
analogous
#7457D2 #B257D2 #D257B4
triadic
#B257D2 #D2B257 #57D2B2
tetradic
#B257D2 #D27457 #77D257 #57B4D2
square
#B257D2 #D27457 #77D257 #57B4D2
split-complementary
#B257D2 #B4D257 #57D274
monochromatic
#6F258A #9732BA #B257D2 #C887DF #DEB8EC

Accessibility & contrast

On white

4.05
#B257D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#B257D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257D2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257D2#FFFFFF#000000##000000
##B257D21.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3579D6
Deuteranopia (green-blind)
#5881CF
Tritanopia (blue-blind)
#B06C8C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b257d2;
/* rgb */ color: rgb(178, 87, 210);
/* oklch */ color: oklch(61.8% 0.195 316.4);
Tailwind
colors: {
  custom: {
    50: '#cc8be0',
    500: '#b257d2',
    950: '#000000',
  },
}
SCSS
$custom: #b257d2;
$custom-light: #cc8be0;
$custom-dark: #000000;
JSON
{
  "hex": "#b257d2",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 210
  },
  "hsl": {
    "h": 284.39,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.61762,
    "c": 0.19504,
    "h": 316.4
  },
  "luminance": 0.20935
}

Semantic roles & 50–950 ramp

primary
#B257D2
secondary
#B7DBAA
accent
#E1476F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B257D2

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

Preview Lab → · Contrast checker → · Palette generator →

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