#B257E6#B257E6

#B257E6 is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 63.0% C 0.215 H 311.0°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B257E6
RGBrgb(178, 87, 230)
HSLhsl(278, 74%, 62%)
HSVhsv(278, 62%, 90%)
CMYKcmyk(22.6%, 62.2%, 0%, 9.8%)
CIE-LABlab(54.02, 60.11, -57.61)
CIE-LCHlch(54.02, 83.26, 316.22°)
OKLaboklab(62.96% 0.1413 -0.1623)
OKLCHoklch(62.96% 0.215 311)
XYZxyz(36.0486, 21.9954, 77.1941)
Luminance0.2200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257E6 #8BE657
analogous
#6B57E6 #B257E6 #E657D2
triadic
#B257E6 #E6B257 #57E6B2
tetradic
#B257E6 #E66B57 #8BE657 #57D2E6
square
#B257E6 #E66B57 #8BE657 #57D2E6
split-complementary
#B257E6 #D2E657 #57E66B
monochromatic
#7519A9 #9A22DE #B257E6 #CA8CEE #E3C2F6

Accessibility & contrast

On white

3.89
#B257E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#B257E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257E6
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257E6#FFFFFF#000000##000000
##B257E61.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#127DEA
Deuteranopia (green-blind)
#4883E3
Tritanopia (blue-blind)
#AC7397
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b257e6;
/* rgb */ color: rgb(178, 87, 230);
/* oklch */ color: oklch(63.0% 0.215 311.0);
Tailwind
colors: {
  custom: {
    50: '#cd8bef',
    500: '#b257e6',
    950: '#000000',
  },
}
SCSS
$custom: #b257e6;
$custom-light: #cd8bef;
$custom-dark: #000000;
JSON
{
  "hex": "#b257e6",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 230
  },
  "hsl": {
    "h": 278.182,
    "s": 74.093,
    "l": 62.157
  },
  "oklch": {
    "l": 0.6296,
    "c": 0.21516,
    "h": 311
  },
  "luminance": 0.21995
}

Semantic roles & 50–950 ramp

primary
#B257E6
secondary
#C5E7B2
accent
#D60F58
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B257E6

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

Preview Lab → · Contrast checker → · Palette generator →

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