#B257EA#B257EA

#B257EA is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.2% C 0.219 H 310.1°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B257EA
RGBrgb(178, 87, 234)
HSLhsl(277, 78%, 63%)
HSVhsv(277, 63%, 92%)
CMYKcmyk(23.9%, 62.8%, 0%, 8.2%)
CIE-LABlab(54.26, 60.96, -59.47)
CIE-LCHlch(54.26, 85.16, 315.71°)
OKLaboklab(63.21% 0.1411 -0.1677)
OKLCHoklch(63.21% 0.219 310.1)
XYZxyz(36.6167, 22.2226, 80.1864)
Luminance0.2222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257EA #8FEA57
analogous
#6857EA #B257EA #EA57D8
triadic
#B257EA #EAB257 #57EAB2
tetradic
#B257EA #EA6857 #8FEA57 #57D8EA
square
#B257EA #EA6857 #8FEA57 #57D8EA
split-complementary
#B257EA #D8EA57 #57EA68
monochromatic
#7616B1 #9921E3 #B257EA #CB8DF1 #E4C4F8

Accessibility & contrast

On white

3.86
#B257EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#B257EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257EA
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257EA#FFFFFF#000000##000000
##B257EA1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EEF
Deuteranopia (green-blind)
#4483E7
Tritanopia (blue-blind)
#AA7499
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b257ea;
/* rgb */ color: rgb(178, 87, 234);
/* oklch */ color: oklch(63.2% 0.219 310.1);
Tailwind
colors: {
  custom: {
    50: '#cd8bf1',
    500: '#b257ea',
    950: '#000000',
  },
}
SCSS
$custom: #b257ea;
$custom-light: #cd8bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b257ea",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 234
  },
  "hsl": {
    "h": 277.143,
    "s": 77.778,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63211,
    "c": 0.2192,
    "h": 310.1
  },
  "luminance": 0.22222
}

Semantic roles & 50–950 ramp

primary
#B257EA
secondary
#C8E9B4
accent
#DA0B5A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B257EA

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

Preview Lab → · Contrast checker → · Palette generator →

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