#B318AC#B318AC

#B318AC is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.1% C 0.233 H 330.4°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#B318AC
RGBrgb(179, 24, 172)
HSLhsl(303, 76%, 40%)
HSVhsv(303, 87%, 70%)
CMYKcmyk(0%, 86.6%, 3.9%, 29.8%)
CIE-LABlab(43.09, 71.38, -41.58)
CIE-LCHlch(43.09, 82.61, 329.78°)
OKLaboklab(54.07% 0.2028 -0.115)
OKLCHoklch(54.07% 0.233 330.4)
XYZxyz(26.3634, 13.2177, 40.1845)
Luminance0.1322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318AC #18B31F
analogous
#6D18B3 #B318AC #B3185E
triadic
#B318AC #ACB318 #18ACB3
tetradic
#B318AC #B36D18 #18B31F #185EB3
square
#B318AC #B36D18 #18B31F #185EB3
split-complementary
#B318AC #5EB318 #18B36D
monochromatic
#470A44 #7D1178 #B318AC #E226D9 #E95CE3

Accessibility & contrast

On white

5.76
#B318AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B318AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318AC
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318AC#FFFFFF#000000##FFFFFF
##B318AC1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B0
Deuteranopia (green-blind)
#506DA9
Tritanopia (blue-blind)
#BA3466
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b318ac;
/* rgb */ color: rgb(179, 24, 172);
/* oklch */ color: oklch(54.1% 0.233 330.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ec5',
    500: '#b318ac',
    950: '#000000',
  },
}
SCSS
$custom: #b318ac;
$custom-light: #ce6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#b318ac",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 172
  },
  "hsl": {
    "h": 302.71,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.54068,
    "c": 0.23315,
    "h": 330.4
  },
  "luminance": 0.13216
}

Semantic roles & 50–950 ramp

primary
#B318AC
secondary
#5ACD5F
accent
#F33D35
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B318AC

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

Preview Lab → · Contrast checker → · Palette generator →

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