#B257F0#B257F0

#B257F0 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.6% C 0.225 H 308.7°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B257F0
RGBrgb(178, 87, 240)
HSLhsl(276, 84%, 64%)
HSVhsv(276, 64%, 94%)
CMYKcmyk(25.8%, 63.7%, 0%, 5.9%)
CIE-LABlab(54.63, 62.26, -62.24)
CIE-LCHlch(54.63, 88.03, 315.01°)
OKLaboklab(63.59% 0.1408 -0.1759)
OKLCHoklch(63.59% 0.225 308.7)
XYZxyz(37.4933, 22.5732, 84.8031)
Luminance0.2257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257F0 #95F057
analogous
#6657F0 #B257F0 #F057E2
triadic
#B257F0 #F0B257 #57F0B2
tetradic
#B257F0 #F06657 #95F057 #57E2F0
square
#B257F0 #F06657 #95F057 #57E2F0
split-complementary
#B257F0 #E2F057 #57F066
monochromatic
#7711BC #981FEB #B257F0 #CC8FF5 #E6C7FA

Accessibility & contrast

On white

3.81
#B257F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#B257F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257F0
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257F0#FFFFFF#000000##000000
##B257F01.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF5
Deuteranopia (green-blind)
#3D84ED
Tritanopia (blue-blind)
#A9769C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b257f0;
/* rgb */ color: rgb(178, 87, 240);
/* oklch */ color: oklch(63.6% 0.225 308.7);
Tailwind
colors: {
  custom: {
    50: '#cd8cf6',
    500: '#b257f0',
    950: '#000000',
  },
}
SCSS
$custom: #b257f0;
$custom-light: #cd8cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#b257f0",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 240
  },
  "hsl": {
    "h": 275.686,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63594,
    "c": 0.22529,
    "h": 308.7
  },
  "luminance": 0.22573
}

Semantic roles & 50–950 ramp

primary
#B257F0
secondary
#CCECB7
accent
#E0055E
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B257F0

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

Preview Lab → · Contrast checker → · Palette generator →

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