#B254CC#B254CC

#B254CC is a mid, vivid purple. Relative luminance 0.202; OKLCH L 61.0% C 0.194 H 318.4°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#B254CC
RGBrgb(178, 84, 204)
HSLhsl(287, 54%, 56%)
HSVhsv(287, 59%, 80%)
CMYKcmyk(12.7%, 58.8%, 0%, 20%)
CIE-LABlab(52.03, 56.17, -46.04)
CIE-LCHlch(52.03, 72.63, 320.66°)
OKLaboklab(61.03% 0.1448 -0.1285)
OKLCHoklch(61.03% 0.194 318.4)
XYZxyz(32.4280, 20.1666, 59.2994)
Luminance0.2016 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B254CC #6ECC54
analogous
#7654CC #B254CC #CC54AA
triadic
#B254CC #CCB254 #54CCB2
tetradic
#B254CC #CC7654 #6ECC54 #54AACC
square
#B254CC #CC7654 #6ECC54 #54AACC
split-complementary
#B254CC #AACC54 #54CC76
monochromatic
#6C2680 #9434AF #B254CC #C783DA #DCB2E8

Accessibility & contrast

On white

4.17
#B254CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#B254CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B254CC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B254CC#FFFFFF#000000##000000
##B254CC1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3676D0
Deuteranopia (green-blind)
#5A7FC9
Tritanopia (blue-blind)
#B26788
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b254cc;
/* rgb */ color: rgb(178, 84, 204);
/* oklch */ color: oklch(61.0% 0.194 318.4);
Tailwind
colors: {
  custom: {
    50: '#cc89dc',
    500: '#b254cc',
    950: '#000000',
  },
}
SCSS
$custom: #b254cc;
$custom-light: #cc89dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b254cc",
  "rgb": {
    "r": 178,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 287,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61034,
    "c": 0.19355,
    "h": 318.4
  },
  "luminance": 0.20165
}

Semantic roles & 50–950 ramp

primary
#B254CC
secondary
#B0D7A5
accent
#DD4A6A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B254CC

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

Preview Lab → · Contrast checker → · Palette generator →

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