#B24FA2#B24FA2

#B24FA2 is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.2% C 0.163 H 334.1°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B24FA2
RGBrgb(178, 79, 162)
HSLhsl(310, 39%, 50%)
HSVhsv(310, 56%, 70%)
CMYKcmyk(0%, 55.6%, 9%, 30.2%)
CIE-LABlab(49.09, 50.85, -26.24)
CIE-LCHlch(49.09, 57.22, 332.71°)
OKLaboklab(58.21% 0.1468 -0.0713)
OKLCHoklch(58.21% 0.163 334.1)
XYZxyz(27.6777, 17.6675, 36.1278)
Luminance0.1767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B24FA2 #4FB25F
analogous
#904FB2 #B24FA2 #B24F70
triadic
#B24FA2 #A2B24F #4FA2B2
tetradic
#B24FA2 #B2904F #4FB25F #4F70B2
square
#B24FA2 #B2904F #4FB25F #4F70B2
split-complementary
#B24FA2 #70B24F #4FB290
monochromatic
#5E2955 #883C7C #B24FA2 #C57AB8 #D7A4CF

Accessibility & contrast

On white

4.63
#B24FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#B24FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B24FA2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B24FA2#FFFFFF#000000##FFFFFF
##B24FA21.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6BA5
Deuteranopia (green-blind)
#6B7A9F
Tritanopia (blue-blind)
#BA5571
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b24fa2;
/* rgb */ color: rgb(178, 79, 162);
/* oklch */ color: oklch(58.2% 0.163 334.1);
Tailwind
colors: {
  custom: {
    50: '#cb85bd',
    500: '#b24fa2',
    950: '#000000',
  },
}
SCSS
$custom: #b24fa2;
$custom-light: #cb85bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b24fa2",
  "rgb": {
    "r": 178,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 309.697,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58214,
    "c": 0.16318,
    "h": 334.1
  },
  "luminance": 0.17666
}

Semantic roles & 50–950 ramp

primary
#B24FA2
secondary
#98C49F
accent
#CF6C59
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B24FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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