#B257E4#B257E4

#B257E4 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.8% C 0.213 H 311.5°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B257E4
RGBrgb(178, 87, 228)
HSLhsl(279, 72%, 62%)
HSVhsv(279, 62%, 89%)
CMYKcmyk(21.9%, 61.8%, 0%, 10.6%)
CIE-LABlab(53.90, 59.68, -56.67)
CIE-LCHlch(53.90, 82.30, 316.48°)
OKLaboklab(62.84% 0.1413 -0.1595)
OKLCHoklch(62.84% 0.213 311.5)
XYZxyz(35.7693, 21.8837, 75.7234)
Luminance0.2188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257E4 #89E457
analogous
#6B57E4 #B257E4 #E457D0
triadic
#B257E4 #E4B257 #57E4B2
tetradic
#B257E4 #E46B57 #89E457 #57D0E4
square
#B257E4 #E46B57 #89E457 #57D0E4
split-complementary
#B257E4 #D0E457 #57E46B
monochromatic
#751BA6 #9A23DB #B257E4 #CA8CEC #E2C0F5

Accessibility & contrast

On white

3.91
#B257E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#B257E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257E4
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257E4#FFFFFF#000000##000000
##B257E41.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#187CE8
Deuteranopia (green-blind)
#4A83E1
Tritanopia (blue-blind)
#AC7296
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b257e4;
/* rgb */ color: rgb(178, 87, 228);
/* oklch */ color: oklch(62.8% 0.213 311.5);
Tailwind
colors: {
  custom: {
    50: '#cd8bed',
    500: '#b257e4',
    950: '#000000',
  },
}
SCSS
$custom: #b257e4;
$custom-light: #cd8bed;
$custom-dark: #000000;
JSON
{
  "hex": "#b257e4",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 228
  },
  "hsl": {
    "h": 278.723,
    "s": 72.308,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62836,
    "c": 0.21313,
    "h": 311.5
  },
  "luminance": 0.21883
}

Semantic roles & 50–950 ramp

primary
#B257E4
secondary
#C4E6B1
accent
#D41156
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B257E4

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

Preview Lab → · Contrast checker → · Palette generator →

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