#B318AF#B318AF

#B318AF is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.2% C 0.235 H 329.5°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#B318AF
RGBrgb(179, 24, 175)
HSLhsl(302, 76%, 40%)
HSVhsv(302, 87%, 70%)
CMYKcmyk(0%, 86.6%, 2.2%, 29.8%)
CIE-LABlab(43.26, 71.83, -43.09)
CIE-LCHlch(43.26, 83.76, 329.04°)
OKLaboklab(54.25% 0.2026 -0.1194)
OKLCHoklch(54.25% 0.235 329.5)
XYZxyz(26.6547, 13.3343, 41.7190)
Luminance0.1333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318AF #18B31C
analogous
#6918B3 #B318AF #B31862
triadic
#B318AF #AFB318 #18AFB3
tetradic
#B318AF #B36918 #18B31C #1862B3
square
#B318AF #B36918 #18B31C #1862B3
split-complementary
#B318AF #62B318 #18B369
monochromatic
#470A45 #7D117A #B318AF #E226DD #E95CE6

Accessibility & contrast

On white

5.73
#B318AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#B318AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318AF
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318AF#FFFFFF#000000##FFFFFF
##B318AF1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#4E6DAC
Tritanopia (blue-blind)
#BA3668
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b318af;
/* rgb */ color: rgb(179, 24, 175);
/* oklch */ color: oklch(54.2% 0.235 329.5);
Tailwind
colors: {
  custom: {
    50: '#ce6ec7',
    500: '#b318af',
    950: '#000000',
  },
}
SCSS
$custom: #b318af;
$custom-light: #ce6ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#b318af",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 175
  },
  "hsl": {
    "h": 301.548,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.54246,
    "c": 0.23522,
    "h": 329.5
  },
  "luminance": 0.13332
}

Semantic roles & 50–950 ramp

primary
#B318AF
secondary
#5ACD5D
accent
#F33A35
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B318AF

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

Preview Lab → · Contrast checker → · Palette generator →

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