#B257CC#B257CC

#B257CC is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.4% C 0.189 H 318.2°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#B257CC
RGBrgb(178, 87, 204)
HSLhsl(287, 53%, 57%)
HSVhsv(287, 57%, 80%)
CMYKcmyk(12.7%, 57.4%, 0%, 20%)
CIE-LABlab(52.56, 54.73, -45.20)
CIE-LCHlch(52.56, 70.98, 320.45°)
OKLaboklab(61.42% 0.141 -0.126)
OKLCHoklch(61.42% 0.189 318.2)
XYZxyz(32.6659, 20.6423, 59.3787)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257CC #71CC57
analogous
#7857CC #B257CC #CC57AB
triadic
#B257CC #CCB257 #57CCB2
tetradic
#B257CC #CC7857 #71CC57 #57ABCC
square
#B257CC #CC7857 #71CC57 #57ABCC
split-complementary
#B257CC #ABCC57 #57CC78
monochromatic
#6D2781 #9536B0 #B257CC #C886DA #DDB5E9

Accessibility & contrast

On white

4.10
#B257CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#B257CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257CC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257CC#FFFFFF#000000##000000
##B257CC1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B77D0
Deuteranopia (green-blind)
#5C80C9
Tritanopia (blue-blind)
#B26A89
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b257cc;
/* rgb */ color: rgb(178, 87, 204);
/* oklch */ color: oklch(61.4% 0.189 318.2);
Tailwind
colors: {
  custom: {
    50: '#cc8bdc',
    500: '#b257cc',
    950: '#000000',
  },
}
SCSS
$custom: #b257cc;
$custom-light: #cc8bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#b257cc",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 286.667,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61421,
    "c": 0.18908,
    "h": 318.2
  },
  "luminance": 0.20641
}

Semantic roles & 50–950 ramp

primary
#B257CC
secondary
#B2D7A8
accent
#DD4B6B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B257CC

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

Preview Lab → · Contrast checker → · Palette generator →

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