#B257EB#B257EB

#B257EB is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.3% C 0.220 H 309.8°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B257EB
RGBrgb(178, 87, 235)
HSLhsl(277, 79%, 63%)
HSVhsv(277, 63%, 92%)
CMYKcmyk(24.3%, 63%, 0%, 7.8%)
CIE-LABlab(54.32, 61.18, -59.93)
CIE-LCHlch(54.32, 85.64, 315.59°)
OKLaboklab(63.27% 0.1411 -0.1691)
OKLCHoklch(63.27% 0.22 309.8)
XYZxyz(36.7608, 22.2802, 80.9451)
Luminance0.2228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257EB #90EB57
analogous
#6857EB #B257EB #EB57DA
triadic
#B257EB #EBB257 #57EBB2
tetradic
#B257EB #EB6857 #90EB57 #57DAEB
square
#B257EB #EB6857 #90EB57 #57DAEB
split-complementary
#B257EB #DAEB57 #57EB68
monochromatic
#7615B2 #9920E4 #B257EB #CB8EF2 #E4C4F8

Accessibility & contrast

On white

3.85
#B257EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#B257EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257EB
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257EB#FFFFFF#000000##000000
##B257EB1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF0
Deuteranopia (green-blind)
#4383E8
Tritanopia (blue-blind)
#AA7599
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b257eb;
/* rgb */ color: rgb(178, 87, 235);
/* oklch */ color: oklch(63.3% 0.220 309.8);
Tailwind
colors: {
  custom: {
    50: '#cd8cf2',
    500: '#b257eb',
    950: '#000000',
  },
}
SCSS
$custom: #b257eb;
$custom-light: #cd8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b257eb",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 276.892,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63274,
    "c": 0.22022,
    "h": 309.8
  },
  "luminance": 0.2228
}

Semantic roles & 50–950 ramp

primary
#B257EB
secondary
#C9E9B4
accent
#DB0A5B
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B257EB

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

Preview Lab → · Contrast checker → · Palette generator →

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