#B257D4#B257D4

#B257D4 is a mid, vivid purple. Relative luminance 0.210; OKLCH L 61.9% C 0.197 H 315.8°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B257D4
RGBrgb(178, 87, 212)
HSLhsl(284, 59%, 59%)
HSVhsv(284, 59%, 83%)
CMYKcmyk(16%, 59%, 0%, 16.9%)
CIE-LABlab(52.99, 56.35, -49.08)
CIE-LCHlch(52.99, 74.72, 318.95°)
OKLaboklab(61.88% 0.1413 -0.1373)
OKLCHoklch(61.88% 0.197 315.8)
XYZxyz(33.6501, 21.0360, 64.5624)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257D4 #79D457
analogous
#7357D4 #B257D4 #D457B7
triadic
#B257D4 #D4B257 #57D4B2
tetradic
#B257D4 #D47357 #79D457 #57B7D4
square
#B257D4 #D47357 #79D457 #57B7D4
split-complementary
#B257D4 #B7D457 #57D473
monochromatic
#70248D #9730BD #B257D4 #C888E0 #DFB8ED

Accessibility & contrast

On white

4.03
#B257D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#B257D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257D4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257D4#FFFFFF#000000##000000
##B257D41.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3379D8
Deuteranopia (green-blind)
#5781D1
Tritanopia (blue-blind)
#B06C8D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b257d4;
/* rgb */ color: rgb(178, 87, 212);
/* oklch */ color: oklch(61.9% 0.197 315.8);
Tailwind
colors: {
  custom: {
    50: '#cc8be2',
    500: '#b257d4',
    950: '#000000',
  },
}
SCSS
$custom: #b257d4;
$custom-light: #cc8be2;
$custom-dark: #000000;
JSON
{
  "hex": "#b257d4",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 212
  },
  "hsl": {
    "h": 283.68,
    "s": 59.242,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61877,
    "c": 0.19703,
    "h": 315.8
  },
  "luminance": 0.21035
}

Semantic roles & 50–950 ramp

primary
#B257D4
secondary
#B8DCAB
accent
#E24570
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B257D4

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

Preview Lab → · Contrast checker → · Palette generator →

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