#B257CF#B257CF

#B257CF is a mid, vivid purple. Relative luminance 0.208; OKLCH L 61.6% C 0.192 H 317.3°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B257CF
RGBrgb(178, 87, 207)
HSLhsl(286, 56%, 58%)
HSVhsv(286, 58%, 81%)
CMYKcmyk(14%, 58%, 0%, 18.8%)
CIE-LABlab(52.72, 55.33, -46.66)
CIE-LCHlch(52.72, 72.38, 319.86°)
OKLaboklab(61.59% 0.1411 -0.1303)
OKLCHoklch(61.59% 0.192 317.3)
XYZxyz(33.0292, 20.7876, 61.2919)
Luminance0.2079 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257CF #74CF57
analogous
#7657CF #B257CF #CF57B0
triadic
#B257CF #CFB257 #57CFB2
tetradic
#B257CF #CF7657 #74CF57 #57B0CF
square
#B257CF #CF7657 #74CF57 #57B0CF
split-complementary
#B257CF #B0CF57 #57CF76
monochromatic
#6E2685 #9634B5 #B257CF #C887DD #DEB6EA

Accessibility & contrast

On white

4.07
#B257CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#B257CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257CF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257CF#FFFFFF#000000##000000
##B257CF1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3978D3
Deuteranopia (green-blind)
#5A81CC
Tritanopia (blue-blind)
#B16B8B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b257cf;
/* rgb */ color: rgb(178, 87, 207);
/* oklch */ color: oklch(61.6% 0.192 317.3);
Tailwind
colors: {
  custom: {
    50: '#cc8bde',
    500: '#b257cf',
    950: '#000000',
  },
}
SCSS
$custom: #b257cf;
$custom-light: #cc8bde;
$custom-dark: #000000;
JSON
{
  "hex": "#b257cf",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 285.5,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.6159,
    "c": 0.19206,
    "h": 317.3
  },
  "luminance": 0.20786
}

Semantic roles & 50–950 ramp

primary
#B257CF
secondary
#B4D9A9
accent
#DF496D
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B257CF

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

Preview Lab → · Contrast checker → · Palette generator →

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