#B257CB#B257CB

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

Color values

HEX#B257CB
RGBrgb(178, 87, 203)
HSLhsl(287, 53%, 57%)
HSVhsv(287, 57%, 80%)
CMYKcmyk(12.3%, 57.1%, 0%, 20.4%)
CIE-LABlab(52.50, 54.53, -44.71)
CIE-LCHlch(52.50, 70.52, 320.65°)
OKLaboklab(61.37% 0.1409 -0.1246)
OKLCHoklch(61.37% 0.188 318.5)
XYZxyz(32.5463, 20.5945, 58.7491)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257CB #70CB57
analogous
#7857CB #B257CB #CB57AA
triadic
#B257CB #CBB257 #57CBB2
tetradic
#B257CB #CB7857 #70CB57 #57AACB
square
#B257CB #CB7857 #70CB57 #57AACB
split-complementary
#B257CB #AACB57 #57CB78
monochromatic
#6D2880 #9536AF #B257CB #C786D9 #DDB4E8

Accessibility & contrast

On white

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

On black

5.12
#B257CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257CB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257CB#FFFFFF#000000##000000
##B257CB1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C77CF
Deuteranopia (green-blind)
#5D80C8
Tritanopia (blue-blind)
#B26989
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b257cb;
/* rgb */ color: rgb(178, 87, 203);
/* oklch */ color: oklch(61.4% 0.188 318.5);
Tailwind
colors: {
  custom: {
    50: '#cc8bdb',
    500: '#b257cb',
    950: '#000000',
  },
}
SCSS
$custom: #b257cb;
$custom-light: #cc8bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b257cb",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 287.069,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61365,
    "c": 0.1881,
    "h": 318.5
  },
  "luminance": 0.20593
}

Semantic roles & 50–950 ramp

primary
#B257CB
secondary
#B1D7A7
accent
#DC4C6B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B257CB

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

Preview Lab → · Contrast checker → · Palette generator →

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