#B254DB#B254DB

#B254DB is a mid, highly saturated purple. Relative luminance 0.209; OKLCH L 61.9% C 0.208 H 314.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#B254DB
RGBrgb(178, 84, 219)
HSLhsl(282, 65%, 59%)
HSVhsv(282, 62%, 86%)
CMYKcmyk(18.7%, 61.6%, 0%, 14.1%)
CIE-LABlab(52.86, 59.20, -53.25)
CIE-LCHlch(52.86, 79.63, 318.03°)
OKLaboklab(61.91% 0.145 -0.1495)
OKLCHoklch(61.91% 0.208 314.1)
XYZxyz(34.3145, 20.9211, 69.2347)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B254DB #7DDB54
analogous
#6F54DB #B254DB #DB54C0
triadic
#B254DB #DBB254 #54DBB2
tetradic
#B254DB #DB6F54 #7DDB54 #54C0DB
square
#B254DB #DB6F54 #7DDB54 #54C0DB
split-complementary
#B254DB #C0DB54 #54DB6F
monochromatic
#711F95 #982AC8 #B254DB #C987E6 #E0B9F0

Accessibility & contrast

On white

4.05
#B254DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#B254DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B254DB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B254DB#FFFFFF#000000##000000
##B254DB1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2279DF
Deuteranopia (green-blind)
#4F81D8
Tritanopia (blue-blind)
#AE6D90
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b254db;
/* rgb */ color: rgb(178, 84, 219);
/* oklch */ color: oklch(61.9% 0.208 314.1);
Tailwind
colors: {
  custom: {
    50: '#cc89e7',
    500: '#b254db',
    950: '#000000',
  },
}
SCSS
$custom: #b254db;
$custom-light: #cc89e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b254db",
  "rgb": {
    "r": 178,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 281.778,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61913,
    "c": 0.20828,
    "h": 314.1
  },
  "luminance": 0.2092
}

Semantic roles & 50–950 ramp

primary
#B254DB
secondary
#BBE0AB
accent
#E84073
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B254DB

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

Preview Lab → · Contrast checker → · Palette generator →

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