#B257FA#B257FA

#B257FA is a light, highly saturated violet. Relative luminance 0.232; OKLCH L 64.2% C 0.235 H 306.5°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B257FA
RGBrgb(178, 87, 250)
HSLhsl(273, 94%, 66%)
HSVhsv(273, 65%, 98%)
CMYKcmyk(28.8%, 65.2%, 0%, 2%)
CIE-LABlab(55.26, 64.45, -66.79)
CIE-LCHlch(55.26, 92.81, 313.98°)
OKLaboklab(64.25% 0.1401 -0.1892)
OKLCHoklch(64.25% 0.235 306.5)
XYZxyz(39.0199, 23.1839, 92.8433)
Luminance0.2318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257FA #9FFA57
analogous
#6057FA #B257FA #FA57F0
triadic
#B257FA #FAB257 #57FAB2
tetradic
#B257FA #FA6057 #9FFA57 #57F0FA
square
#B257FA #FA6057 #9FFA57 #57F0FA
split-complementary
#B257FA #F0FA57 #57FA60
monochromatic
#7706D0 #971CF8 #B257FA #CD92FC #E8CEFE

Accessibility & contrast

On white

3.73
#B257FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#B257FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257FA
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257FA#FFFFFF#000000##000000
##B257FA1.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FF
Deuteranopia (green-blind)
#2E85F6
Tritanopia (blue-blind)
#A67AA1
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b257fa;
/* rgb */ color: rgb(178, 87, 250);
/* oklch */ color: oklch(64.2% 0.235 306.5);
Tailwind
colors: {
  custom: {
    50: '#ce8cfd',
    500: '#b257fa',
    950: '#000000',
  },
}
SCSS
$custom: #b257fa;
$custom-light: #ce8cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b257fa",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 250
  },
  "hsl": {
    "h": 273.497,
    "s": 94.22,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64249,
    "c": 0.23544,
    "h": 306.5
  },
  "luminance": 0.23183
}

Semantic roles & 50–950 ramp

primary
#B257FA
secondary
#D3F1BC
accent
#E60065
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #B257FA

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

Preview Lab → · Contrast checker → · Palette generator →

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