#B254EB#B254EB

#B254EB is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 62.9% C 0.224 H 310.1°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B254EB
RGBrgb(178, 84, 235)
HSLhsl(277, 79%, 63%)
HSVhsv(277, 64%, 92%)
CMYKcmyk(24.3%, 64.3%, 0%, 7.8%)
CIE-LABlab(53.82, 62.56, -60.74)
CIE-LCHlch(53.82, 87.20, 315.85°)
OKLaboklab(62.91% 0.1445 -0.1714)
OKLCHoklch(62.91% 0.224 310.1)
XYZxyz(36.5229, 21.8045, 80.8659)
Luminance0.2180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B254EB #8DEB54
analogous
#6654EB #B254EB #EB54D9
triadic
#B254EB #EBB254 #54EBB2
tetradic
#B254EB #EB6654 #8DEB54 #54D9EB
square
#B254EB #EB6654 #8DEB54 #54D9EB
split-complementary
#B254EB #D9EB54 #54EB66
monochromatic
#7515B0 #991DE5 #B254EB #CB8BF1 #E3C2F8

Accessibility & contrast

On white

3.92
#B254EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#B254EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B254EB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B254EB#FFFFFF#000000##000000
##B254EB1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#3F82E8
Tritanopia (blue-blind)
#AA7398
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b254eb;
/* rgb */ color: rgb(178, 84, 235);
/* oklch */ color: oklch(62.9% 0.224 310.1);
Tailwind
colors: {
  custom: {
    50: '#cd8af2',
    500: '#b254eb',
    950: '#000000',
  },
}
SCSS
$custom: #b254eb;
$custom-light: #cd8af2;
$custom-dark: #000000;
JSON
{
  "hex": "#b254eb",
  "rgb": {
    "r": 178,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 277.351,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.6291,
    "c": 0.2242,
    "h": 310.1
  },
  "luminance": 0.21804
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B254EB

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

Preview Lab → · Contrast checker → · Palette generator →

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