#B257E9#B257E9

#B257E9 is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.1% C 0.218 H 310.3°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B257E9
RGBrgb(178, 87, 233)
HSLhsl(277, 77%, 63%)
HSVhsv(277, 63%, 91%)
CMYKcmyk(23.6%, 62.7%, 0%, 8.6%)
CIE-LABlab(54.20, 60.75, -59.00)
CIE-LCHlch(54.20, 84.69, 315.83°)
OKLaboklab(63.15% 0.1412 -0.1664)
OKLCHoklch(63.15% 0.218 310.3)
XYZxyz(36.4735, 22.1653, 79.4319)
Luminance0.2217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257E9 #8EE957
analogous
#6957E9 #B257E9 #E957D7
triadic
#B257E9 #E9B257 #57E9B2
tetradic
#B257E9 #E96957 #8EE957 #57D7E9
square
#B257E9 #E96957 #8EE957 #57D7E9
split-complementary
#B257E9 #D7E957 #57E969
monochromatic
#7617AF #9921E2 #B257E9 #CB8DF0 #E4C3F7

Accessibility & contrast

On white

3.87
#B257E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#B257E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257E9
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257E9#FFFFFF#000000##000000
##B257E91.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#047DED
Deuteranopia (green-blind)
#4583E6
Tritanopia (blue-blind)
#AB7498
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b257e9;
/* rgb */ color: rgb(178, 87, 233);
/* oklch */ color: oklch(63.1% 0.218 310.3);
Tailwind
colors: {
  custom: {
    50: '#cd8bf1',
    500: '#b257e9',
    950: '#000000',
  },
}
SCSS
$custom: #b257e9;
$custom-light: #cd8bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b257e9",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 233
  },
  "hsl": {
    "h": 277.397,
    "s": 76.842,
    "l": 62.745
  },
  "oklch": {
    "l": 0.63148,
    "c": 0.21819,
    "h": 310.3
  },
  "luminance": 0.22165
}

Semantic roles & 50–950 ramp

primary
#B257E9
secondary
#C7E8B3
accent
#D90C5A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B257E9

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

Preview Lab → · Contrast checker → · Palette generator →

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