#B257EF#B257EF

#B257EF is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.5% C 0.224 H 308.9°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#B257EF
RGBrgb(178, 87, 239)
HSLhsl(276, 83%, 64%)
HSVhsv(276, 64%, 94%)
CMYKcmyk(25.5%, 63.6%, 0%, 6.3%)
CIE-LABlab(54.57, 62.04, -61.78)
CIE-LCHlch(54.57, 87.55, 315.12°)
OKLaboklab(63.53% 0.1409 -0.1745)
OKLCHoklch(63.53% 0.224 308.9)
XYZxyz(37.3452, 22.5140, 84.0229)
Luminance0.2251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257EF #94EF57
analogous
#6657EF #B257EF #EF57E0
triadic
#B257EF #EFB257 #57EFB2
tetradic
#B257EF #EF6657 #94EF57 #57E0EF
square
#B257EF #EF6657 #94EF57 #57E0EF
split-complementary
#B257EF #E0EF57 #57EF66
monochromatic
#7612BA #981FEA #B257EF #CC8FF4 #E5C7FA

Accessibility & contrast

On white

3.82
#B257EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#B257EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257EF
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257EF#FFFFFF#000000##000000
##B257EF1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF4
Deuteranopia (green-blind)
#3E84EC
Tritanopia (blue-blind)
#A9769C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b257ef;
/* rgb */ color: rgb(178, 87, 239);
/* oklch */ color: oklch(63.5% 0.224 308.9);
Tailwind
colors: {
  custom: {
    50: '#cd8cf5',
    500: '#b257ef',
    950: '#000000',
  },
}
SCSS
$custom: #b257ef;
$custom-light: #cd8cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#b257ef",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 275.921,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.63529,
    "c": 0.22427,
    "h": 308.9
  },
  "luminance": 0.22513
}

Semantic roles & 50–950 ramp

primary
#B257EF
secondary
#CCECB6
accent
#DF065D
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #B257EF

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

Preview Lab → · Contrast checker → · Palette generator →

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