#B318AD#B318AD

#B318AD is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.1% C 0.234 H 330.1°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#B318AD
RGBrgb(179, 24, 173)
HSLhsl(302, 76%, 40%)
HSVhsv(302, 87%, 70%)
CMYKcmyk(0%, 86.6%, 3.4%, 29.8%)
CIE-LABlab(43.15, 71.53, -42.08)
CIE-LCHlch(43.15, 82.99, 329.53°)
OKLaboklab(54.13% 0.2027 -0.1165)
OKLCHoklch(54.13% 0.234 330.1)
XYZxyz(26.4598, 13.2563, 40.6922)
Luminance0.1325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318AD #18B31E
analogous
#6C18B3 #B318AD #B3185F
triadic
#B318AD #ADB318 #18ADB3
tetradic
#B318AD #B36C18 #18B31E #185FB3
square
#B318AD #B36C18 #18B31E #185FB3
split-complementary
#B318AD #5FB318 #18B36C
monochromatic
#470A45 #7D1179 #B318AD #E226DB #E95CE4

Accessibility & contrast

On white

5.75
#B318AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#B318AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318AD
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318AD#FFFFFF#000000##FFFFFF
##B318AD1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#4F6DAA
Tritanopia (blue-blind)
#BA3467
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b318ad;
/* rgb */ color: rgb(179, 24, 173);
/* oklch */ color: oklch(54.1% 0.234 330.1);
Tailwind
colors: {
  custom: {
    50: '#ce6ec6',
    500: '#b318ad',
    950: '#000000',
  },
}
SCSS
$custom: #b318ad;
$custom-light: #ce6ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#b318ad",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 173
  },
  "hsl": {
    "h": 302.323,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.54127,
    "c": 0.23383,
    "h": 330.1
  },
  "luminance": 0.13254
}

Semantic roles & 50–950 ramp

primary
#B318AD
secondary
#5ACD5E
accent
#F33C35
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B318AD

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

Preview Lab → · Contrast checker → · Palette generator →

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