#B254EC#B254EC

#B254EC is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 63.0% C 0.225 H 309.9°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#B254EC
RGBrgb(178, 84, 236)
HSLhsl(277, 80%, 63%)
HSVhsv(277, 64%, 93%)
CMYKcmyk(24.6%, 64.4%, 0%, 7.5%)
CIE-LABlab(53.88, 62.78, -61.20)
CIE-LCHlch(53.88, 87.67, 315.73°)
OKLaboklab(62.98% 0.1444 -0.1728)
OKLCHoklch(62.98% 0.225 309.9)
XYZxyz(36.6678, 21.8625, 81.6289)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B254EC #8EEC54
analogous
#6654EC #B254EC #EC54DA
triadic
#B254EC #ECB254 #54ECB2
tetradic
#B254EC #EC6654 #8EEC54 #54DAEC
square
#B254EC #EC6654 #8EEC54 #54DAEC
split-complementary
#B254EC #DAEC54 #54EC66
monochromatic
#7614B2 #991DE6 #B254EC #CB8BF2 #E4C2F8

Accessibility & contrast

On white

3.91
#B254EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#B254EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B254EC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B254EC#FFFFFF#000000##000000
##B254EC1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#3E82E9
Tritanopia (blue-blind)
#AA7399
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b254ec;
/* rgb */ color: rgb(178, 84, 236);
/* oklch */ color: oklch(63.0% 0.225 309.9);
Tailwind
colors: {
  custom: {
    50: '#cd8af3',
    500: '#b254ec',
    950: '#000000',
  },
}
SCSS
$custom: #b254ec;
$custom-light: #cd8af3;
$custom-dark: #000000;
JSON
{
  "hex": "#b254ec",
  "rgb": {
    "r": 178,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 277.105,
    "s": 80,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62975,
    "c": 0.2252,
    "h": 309.9
  },
  "luminance": 0.21862
}

Semantic roles & 50–950 ramp

primary
#B254EC
secondary
#C7E9B2
accent
#DC095A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B254EC

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

Preview Lab → · Contrast checker → · Palette generator →

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