#B257CA#B257CA

#B257CA is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.3% C 0.187 H 318.8°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#B257CA
RGBrgb(178, 87, 202)
HSLhsl(287, 52%, 57%)
HSVhsv(287, 57%, 79%)
CMYKcmyk(11.9%, 56.9%, 0%, 20.8%)
CIE-LABlab(52.45, 54.33, -44.22)
CIE-LCHlch(52.45, 70.06, 320.86°)
OKLaboklab(61.31% 0.1409 -0.1232)
OKLCHoklch(61.31% 0.187 318.8)
XYZxyz(32.4276, 20.5469, 58.1235)
Luminance0.2055 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257CA #6FCA57
analogous
#7957CA #B257CA #CA57A9
triadic
#B257CA #CAB257 #57CAB2
tetradic
#B257CA #CA7957 #6FCA57 #57A9CA
square
#B257CA #CA7957 #6FCA57 #57A9CA
split-complementary
#B257CA #A9CA57 #57CA79
monochromatic
#6D287F #9437AD #B257CA #C786D9 #DDB4E7

Accessibility & contrast

On white

4.11
#B257CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#B257CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257CA
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257CA#FFFFFF#000000##000000
##B257CA1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D77CE
Deuteranopia (green-blind)
#5E80C7
Tritanopia (blue-blind)
#B26988
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b257ca;
/* rgb */ color: rgb(178, 87, 202);
/* oklch */ color: oklch(61.3% 0.187 318.8);
Tailwind
colors: {
  custom: {
    50: '#cc8bda',
    500: '#b257ca',
    950: '#000000',
  },
}
SCSS
$custom: #b257ca;
$custom-light: #cc8bda;
$custom-dark: #000000;
JSON
{
  "hex": "#b257ca",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 287.478,
    "s": 52.036,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61309,
    "c": 0.18712,
    "h": 318.8
  },
  "luminance": 0.20546
}

Semantic roles & 50–950 ramp

primary
#B257CA
secondary
#B1D6A7
accent
#DB4C6A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B257CA

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

Preview Lab → · Contrast checker → · Palette generator →

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