#B257F4#B257F4

#B257F4 is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.9% C 0.229 H 307.8°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#B257F4
RGBrgb(178, 87, 244)
HSLhsl(275, 88%, 65%)
HSVhsv(275, 64%, 96%)
CMYKcmyk(27%, 64.3%, 0%, 4.3%)
CIE-LABlab(54.88, 63.13, -64.07)
CIE-LCHlch(54.88, 89.94, 314.58°)
OKLaboklab(63.85% 0.1406 -0.1812)
OKLCHoklch(63.85% 0.229 307.8)
XYZxyz(38.0941, 22.8135, 87.9671)
Luminance0.2281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257F4 #99F457
analogous
#6457F4 #B257F4 #F457E7
triadic
#B257F4 #F4B257 #57F4B2
tetradic
#B257F4 #F46457 #99F457 #57E7F4
square
#B257F4 #F46457 #99F457 #57E7F4
split-complementary
#B257F4 #E7F457 #57F464
monochromatic
#770DC4 #981EF0 #B257F4 #CC90F8 #E7CAFC

Accessibility & contrast

On white

3.78
#B257F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#B257F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257F4
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257F4#FFFFFF#000000##000000
##B257F41.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F9
Deuteranopia (green-blind)
#3884F0
Tritanopia (blue-blind)
#A8789E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b257f4;
/* rgb */ color: rgb(178, 87, 244);
/* oklch */ color: oklch(63.9% 0.229 307.8);
Tailwind
colors: {
  custom: {
    50: '#cd8cf9',
    500: '#b257f4',
    950: '#000000',
  },
}
SCSS
$custom: #b257f4;
$custom-light: #cd8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#b257f4",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 244
  },
  "hsl": {
    "h": 274.777,
    "s": 87.709,
    "l": 64.902
  },
  "oklch": {
    "l": 0.63853,
    "c": 0.22934,
    "h": 307.8
  },
  "luminance": 0.22813
}

Semantic roles & 50–950 ramp

primary
#B257F4
secondary
#CFEEB9
accent
#E40161
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B257F4

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

Preview Lab → · Contrast checker → · Palette generator →

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