#B254D2#B254D2

#B254D2 is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.4% C 0.199 H 316.6°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#B254D2
RGBrgb(178, 84, 210)
HSLhsl(285, 58%, 58%)
HSVhsv(285, 60%, 82%)
CMYKcmyk(15.2%, 60%, 0%, 17.6%)
CIE-LABlab(52.35, 57.37, -48.95)
CIE-LCHlch(52.35, 75.41, 319.53°)
OKLaboklab(61.38% 0.145 -0.1369)
OKLCHoklch(61.38% 0.199 316.6)
XYZxyz(33.1616, 20.4600, 63.1626)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B254D2 #74D254
analogous
#7354D2 #B254D2 #D254B3
triadic
#B254D2 #D2B254 #54D2B2
tetradic
#B254D2 #D27354 #74D254 #54B3D2
square
#B254D2 #D27354 #74D254 #54B3D2
split-complementary
#B254D2 #B3D254 #54D273
monochromatic
#6E2488 #9631B8 #B254D2 #C884DF #DEB5EB

Accessibility & contrast

On white

4.12
#B254D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#B254D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B254D2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B254D2#FFFFFF#000000##000000
##B254D21.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3077D6
Deuteranopia (green-blind)
#5680CF
Tritanopia (blue-blind)
#B16A8B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b254d2;
/* rgb */ color: rgb(178, 84, 210);
/* oklch */ color: oklch(61.4% 0.199 316.6);
Tailwind
colors: {
  custom: {
    50: '#cc89e0',
    500: '#b254d2',
    950: '#000000',
  },
}
SCSS
$custom: #b254d2;
$custom-light: #cc89e0;
$custom-dark: #000000;
JSON
{
  "hex": "#b254d2",
  "rgb": {
    "r": 178,
    "g": 84,
    "b": 210
  },
  "hsl": {
    "h": 284.762,
    "s": 58.333,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61379,
    "c": 0.19941,
    "h": 316.6
  },
  "luminance": 0.20459
}

Semantic roles & 50–950 ramp

primary
#B254D2
secondary
#B4DAA8
accent
#E2466E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B254D2

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

Preview Lab → · Contrast checker → · Palette generator →

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