#B254CB#B254CB

#B254CB is a mid, vivid purple. Relative luminance 0.201; OKLCH L 61.0% C 0.193 H 318.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B254CB
RGBrgb(178, 84, 203)
HSLhsl(287, 53%, 56%)
HSVhsv(287, 59%, 80%)
CMYKcmyk(12.3%, 58.6%, 0%, 20.4%)
CIE-LABlab(51.97, 55.97, -45.56)
CIE-LCHlch(51.97, 72.17, 320.86°)
OKLaboklab(60.98% 0.1447 -0.127)
OKLCHoklch(60.98% 0.193 318.7)
XYZxyz(32.3085, 20.1188, 58.6698)
Luminance0.2012 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B254CB #6DCB54
analogous
#7754CB #B254CB #CB54A9
triadic
#B254CB #CBB254 #54CBB2
tetradic
#B254CB #CB7754 #6DCB54 #54A9CB
square
#B254CB #CB7754 #6DCB54 #54A9CB
split-complementary
#B254CB #A9CB54 #54CB77
monochromatic
#6C267E #9435AD #B254CB #C783D9 #DCB2E8

Accessibility & contrast

On white

4.18
#B254CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#B254CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B254CB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B254CB#FFFFFF#000000##000000
##B254CB1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3776CF
Deuteranopia (green-blind)
#5B7FC8
Tritanopia (blue-blind)
#B26788
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b254cb;
/* rgb */ color: rgb(178, 84, 203);
/* oklch */ color: oklch(61.0% 0.193 318.7);
Tailwind
colors: {
  custom: {
    50: '#cc89db',
    500: '#b254cb',
    950: '#000000',
  },
}
SCSS
$custom: #b254cb;
$custom-light: #cc89db;
$custom-dark: #000000;
JSON
{
  "hex": "#b254cb",
  "rgb": {
    "r": 178,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 287.395,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60977,
    "c": 0.19258,
    "h": 318.7
  },
  "luminance": 0.20117
}

Semantic roles & 50–950 ramp

primary
#B254CB
secondary
#AFD6A5
accent
#DD4B6A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B254CB

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

Preview Lab → · Contrast checker → · Palette generator →

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