#B254DC#B254DC

#B254DC is a mid, highly saturated purple. Relative luminance 0.210; OKLCH L 62.0% C 0.209 H 313.9°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#B254DC
RGBrgb(178, 84, 220)
HSLhsl(281, 66%, 60%)
HSVhsv(281, 62%, 86%)
CMYKcmyk(19.1%, 61.8%, 0%, 13.7%)
CIE-LABlab(52.92, 59.41, -53.73)
CIE-LCHlch(52.92, 80.10, 317.88°)
OKLaboklab(61.97% 0.145 -0.1509)
OKLCHoklch(61.97% 0.209 313.9)
XYZxyz(34.4465, 20.9740, 69.9301)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B254DC #7EDC54
analogous
#6E54DC #B254DC #DC54C2
triadic
#B254DC #DCB254 #54DCB2
tetradic
#B254DC #DC6E54 #7EDC54 #54C2DC
square
#B254DC #DC6E54 #7EDC54 #54C2DC
split-complementary
#B254DC #C2DC54 #54DC6E
monochromatic
#721F97 #9829CA #B254DC #C987E6 #E0BAF1

Accessibility & contrast

On white

4.04
#B254DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#B254DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B254DC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B254DC#FFFFFF#000000##000000
##B254DC1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2079E0
Deuteranopia (green-blind)
#4E81D9
Tritanopia (blue-blind)
#AE6D90
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b254dc;
/* rgb */ color: rgb(178, 84, 220);
/* oklch */ color: oklch(62.0% 0.209 313.9);
Tailwind
colors: {
  custom: {
    50: '#cc89e7',
    500: '#b254dc',
    950: '#000000',
  },
}
SCSS
$custom: #b254dc;
$custom-light: #cc89e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b254dc",
  "rgb": {
    "r": 178,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 281.471,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61974,
    "c": 0.20927,
    "h": 313.9
  },
  "luminance": 0.20973
}

Semantic roles & 50–950 ramp

primary
#B254DC
secondary
#BCE0AC
accent
#E93F73
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B254DC

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

Preview Lab → · Contrast checker → · Palette generator →

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