#B257F3#B257F3

#B257F3 is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.8% C 0.228 H 308.0°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#B257F3
RGBrgb(178, 87, 243)
HSLhsl(275, 87%, 65%)
HSVhsv(275, 64%, 95%)
CMYKcmyk(26.7%, 64.2%, 0%, 4.7%)
CIE-LABlab(54.82, 62.91, -63.61)
CIE-LCHlch(54.82, 89.47, 314.68°)
OKLaboklab(63.79% 0.1406 -0.1799)
OKLCHoklch(63.79% 0.228 308)
XYZxyz(37.9426, 22.7530, 87.1696)
Luminance0.2275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B257F3 #98F357
analogous
#6457F3 #B257F3 #F357E6
triadic
#B257F3 #F3B257 #57F3B2
tetradic
#B257F3 #F36457 #98F357 #57E6F3
square
#B257F3 #F36457 #98F357 #57E6F3
split-complementary
#B257F3 #E6F357 #57F364
monochromatic
#770EC2 #981EEF #B257F3 #CC90F7 #E6C9FB

Accessibility & contrast

On white

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

On black

5.55
#B257F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B257F3
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B257F3#FFFFFF#000000##000000
##B257F31.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F8
Deuteranopia (green-blind)
#3984EF
Tritanopia (blue-blind)
#A8779E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b257f3;
/* rgb */ color: rgb(178, 87, 243);
/* oklch */ color: oklch(63.8% 0.228 308.0);
Tailwind
colors: {
  custom: {
    50: '#cd8cf8',
    500: '#b257f3',
    950: '#000000',
  },
}
SCSS
$custom: #b257f3;
$custom-light: #cd8cf8;
$custom-dark: #000000;
JSON
{
  "hex": "#b257f3",
  "rgb": {
    "r": 178,
    "g": 87,
    "b": 243
  },
  "hsl": {
    "h": 275,
    "s": 86.667,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63788,
    "c": 0.22833,
    "h": 308
  },
  "luminance": 0.22752
}

Semantic roles & 50–950 ramp

primary
#B257F3
secondary
#CEEEB8
accent
#E30260
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B257F3

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

Preview Lab → · Contrast checker → · Palette generator →

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