#B257E2#B257E2

#B257E2 is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 62.7% C 0.211 H 312.0°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#B257E2
RGBrgb(178, 87, 226)
HSLhsl(279, 71%, 61%)
HSVhsv(279, 62%, 89%)
CMYKcmyk(21.2%, 61.5%, 0%, 11.4%)
CIE-LABlab(53.79, 59.26, -55.73)
CIE-LCHlch(53.79, 81.35, 316.76°)
OKLaboklab(62.71% 0.1414 -0.1568)
OKLCHoklch(62.71% 0.211 312)
XYZxyz(35.4933, 21.7732, 74.2697)
Luminance0.2177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257E2 #87E257
analogous
#6D57E2 #B257E2 #E257CC
triadic
#B257E2 #E2B257 #57E2B2
tetradic
#B257E2 #E26D57 #87E257 #57CCE2
square
#B257E2 #E26D57 #87E257 #57CCE2
split-complementary
#B257E2 #CCE257 #57E26D
monochromatic
#741CA3 #9925D7 #B257E2 #CA8BEB #E2BFF4

Accessibility & contrast

On white

3.92
#B257E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#B257E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257E2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257E2#FFFFFF#000000##000000
##B257E21.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D7CE6
Deuteranopia (green-blind)
#4C82DF
Tritanopia (blue-blind)
#AD7195
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b257e2;
/* rgb */ color: rgb(178, 87, 226);
/* oklch */ color: oklch(62.7% 0.211 312.0);
Tailwind
colors: {
  custom: {
    50: '#cd8bec',
    500: '#b257e2',
    950: '#000000',
  },
}
SCSS
$custom: #b257e2;
$custom-light: #cd8bec;
$custom-dark: #000000;
JSON
{
  "hex": "#b257e2",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 226
  },
  "hsl": {
    "h": 279.281,
    "s": 70.558,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62713,
    "c": 0.21111,
    "h": 312
  },
  "luminance": 0.21772
}

Semantic roles & 50–950 ramp

primary
#B257E2
secondary
#C2E4B0
accent
#D31355
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B257E2

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

Preview Lab → · Contrast checker → · Palette generator →

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