#B257F2#B257F2

#B257F2 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.7% C 0.227 H 308.2°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B257F2
RGBrgb(178, 87, 242)
HSLhsl(275, 86%, 65%)
HSVhsv(275, 64%, 95%)
CMYKcmyk(26.4%, 64%, 0%, 5.1%)
CIE-LABlab(54.75, 62.69, -63.15)
CIE-LCHlch(54.75, 88.99, 314.79°)
OKLaboklab(63.72% 0.1407 -0.1785)
OKLCHoklch(63.72% 0.227 308.2)
XYZxyz(37.7920, 22.6927, 86.3764)
Luminance0.2269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257F2 #97F257
analogous
#6557F2 #B257F2 #F257E4
triadic
#B257F2 #F2B257 #57F2B2
tetradic
#B257F2 #F26557 #97F257 #57E4F2
square
#B257F2 #F26557 #97F257 #57E4F2
split-complementary
#B257F2 #E4F257 #57F265
monochromatic
#770FC0 #981EEE #B257F2 #CC90F6 #E6C9FB

Accessibility & contrast

On white

3.79
#B257F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#B257F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257F2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257F2#FFFFFF#000000##000000
##B257F21.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF7
Deuteranopia (green-blind)
#3B84EF
Tritanopia (blue-blind)
#A8779D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b257f2;
/* rgb */ color: rgb(178, 87, 242);
/* oklch */ color: oklch(63.7% 0.227 308.2);
Tailwind
colors: {
  custom: {
    50: '#cd8cf7',
    500: '#b257f2',
    950: '#000000',
  },
}
SCSS
$custom: #b257f2;
$custom-light: #cd8cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b257f2",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 275.226,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63723,
    "c": 0.22732,
    "h": 308.2
  },
  "luminance": 0.22692
}

Semantic roles & 50–950 ramp

primary
#B257F2
secondary
#CEEDB8
accent
#E2035F
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B257F2

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

Preview Lab → · Contrast checker → · Palette generator →

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