#B257E8#B257E8

#B257E8 is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.1% C 0.217 H 310.6°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B257E8
RGBrgb(178, 87, 232)
HSLhsl(278, 76%, 63%)
HSVhsv(278, 63%, 91%)
CMYKcmyk(23.3%, 62.5%, 0%, 9%)
CIE-LABlab(54.14, 60.53, -58.54)
CIE-LCHlch(54.14, 84.21, 315.96°)
OKLaboklab(63.09% 0.1412 -0.165)
OKLCHoklch(63.09% 0.217 310.6)
XYZxyz(36.3310, 22.1083, 78.6817)
Luminance0.2211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257E8 #8DE857
analogous
#6957E8 #B257E8 #E857D6
triadic
#B257E8 #E8B257 #57E8B2
tetradic
#B257E8 #E86957 #8DE857 #57D6E8
square
#B257E8 #E86957 #8DE857 #57D6E8
split-complementary
#B257E8 #D6E857 #57E869
monochromatic
#7518AD #9921E1 #B257E8 #CB8DEF #E3C3F7

Accessibility & contrast

On white

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

On black

5.42
#B257E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257E8
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257E8#FFFFFF#000000##000000
##B257E81.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#097DEC
Deuteranopia (green-blind)
#4683E5
Tritanopia (blue-blind)
#AB7398
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b257e8;
/* rgb */ color: rgb(178, 87, 232);
/* oklch */ color: oklch(63.1% 0.217 310.6);
Tailwind
colors: {
  custom: {
    50: '#cd8bf0',
    500: '#b257e8',
    950: '#000000',
  },
}
SCSS
$custom: #b257e8;
$custom-light: #cd8bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#b257e8",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 277.655,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.63085,
    "c": 0.21718,
    "h": 310.6
  },
  "luminance": 0.22108
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B257E8

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

Preview Lab → · Contrast checker → · Palette generator →

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