#B254CA#B254CA

#B254CA is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.9% C 0.192 H 319.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B254CA
RGBrgb(178, 84, 202)
HSLhsl(288, 53%, 56%)
HSVhsv(288, 58%, 79%)
CMYKcmyk(11.9%, 58.4%, 0%, 20.8%)
CIE-LABlab(51.92, 55.77, -45.07)
CIE-LCHlch(51.92, 71.71, 321.06°)
OKLaboklab(60.92% 0.1447 -0.1256)
OKLCHoklch(60.92% 0.192 319)
XYZxyz(32.1897, 20.0712, 58.0442)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B254CA #6CCA54
analogous
#7754CA #B254CA #CA54A7
triadic
#B254CA #CAB254 #54CAB2
tetradic
#B254CA #CA7754 #6CCA54 #54A7CA
square
#B254CA #CA7754 #6CCA54 #54A7CA
split-complementary
#B254CA #A7CA54 #54CA77
monochromatic
#6B277D #9435AC #B254CA #C783D8 #DCB1E7

Accessibility & contrast

On white

4.19
#B254CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#B254CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B254CA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B254CA#FFFFFF#000000##000000
##B254CA1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3875CE
Deuteranopia (green-blind)
#5B7FC7
Tritanopia (blue-blind)
#B26787
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b254ca;
/* rgb */ color: rgb(178, 84, 202);
/* oklch */ color: oklch(60.9% 0.192 319.0);
Tailwind
colors: {
  custom: {
    50: '#cc89da',
    500: '#b254ca',
    950: '#000000',
  },
}
SCSS
$custom: #b254ca;
$custom-light: #cc89da;
$custom-dark: #000000;
JSON
{
  "hex": "#b254ca",
  "rgb": {
    "r": 178,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 287.797,
    "s": 52.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60921,
    "c": 0.19161,
    "h": 319
  },
  "luminance": 0.2007
}

Semantic roles & 50–950 ramp

primary
#B254CA
secondary
#AED5A5
accent
#DC4C69
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B254CA

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

Preview Lab → · Contrast checker → · Palette generator →

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