#B257EE#B257EE

#B257EE is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.5% C 0.223 H 309.1°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#B257EE
RGBrgb(178, 87, 238)
HSLhsl(276, 82%, 64%)
HSVhsv(276, 63%, 93%)
CMYKcmyk(25.2%, 63.4%, 0%, 6.7%)
CIE-LABlab(54.51, 61.82, -61.32)
CIE-LCHlch(54.51, 87.07, 315.24°)
OKLaboklab(63.47% 0.1409 -0.1732)
OKLCHoklch(63.47% 0.223 309.1)
XYZxyz(37.1978, 22.4551, 83.2470)
Luminance0.2245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257EE #93EE57
analogous
#6657EE #B257EE #EE57DE
triadic
#B257EE #EEB257 #57EEB2
tetradic
#B257EE #EE6657 #93EE57 #57DEEE
square
#B257EE #EE6657 #93EE57 #57DEEE
split-complementary
#B257EE #DEEE57 #57EE66
monochromatic
#7613B8 #991FE8 #B257EE #CB8FF4 #E5C6F9

Accessibility & contrast

On white

3.82
#B257EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#B257EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257EE
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257EE#FFFFFF#000000##000000
##B257EE1.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF3
Deuteranopia (green-blind)
#4084EB
Tritanopia (blue-blind)
#A9769B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b257ee;
/* rgb */ color: rgb(178, 87, 238);
/* oklch */ color: oklch(63.5% 0.223 309.1);
Tailwind
colors: {
  custom: {
    50: '#cd8cf4',
    500: '#b257ee',
    950: '#000000',
  },
}
SCSS
$custom: #b257ee;
$custom-light: #cd8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b257ee",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 238
  },
  "hsl": {
    "h": 276.159,
    "s": 81.622,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63465,
    "c": 0.22326,
    "h": 309.1
  },
  "luminance": 0.22454
}

Semantic roles & 50–950 ramp

primary
#B257EE
secondary
#CBEBB6
accent
#DE085D
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #B257EE

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

Preview Lab → · Contrast checker → · Palette generator →

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