#B318A7#B318A7

#B318A7 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.8% C 0.230 H 332.0°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#B318A7
RGBrgb(179, 24, 167)
HSLhsl(305, 76%, 40%)
HSVhsv(305, 87%, 70%)
CMYKcmyk(0%, 86.6%, 6.7%, 29.8%)
CIE-LABlab(42.81, 70.65, -39.05)
CIE-LCHlch(42.81, 80.72, 331.07°)
OKLaboklab(53.78% 0.2029 -0.1077)
OKLCHoklch(53.78% 0.23 332)
XYZxyz(25.8922, 13.0293, 37.7030)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318A7 #18B324
analogous
#7118B3 #B318A7 #B3185A
triadic
#B318A7 #A7B318 #18A7B3
tetradic
#B318A7 #B37118 #18B324 #185AB3
square
#B318A7 #B37118 #18B324 #185AB3
split-complementary
#B318A7 #5AB318 #18B371
monochromatic
#470A42 #7D1175 #B318A7 #E226D3 #E95CDE

Accessibility & contrast

On white

5.82
#B318A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#B318A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318A7
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318A7#FFFFFF#000000##FFFFFF
##B318A71.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#526CA4
Tritanopia (blue-blind)
#BB3163
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b318a7;
/* rgb */ color: rgb(179, 24, 167);
/* oklch */ color: oklch(53.8% 0.230 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce6ec1',
    500: '#b318a7',
    950: '#000000',
  },
}
SCSS
$custom: #b318a7;
$custom-light: #ce6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#b318a7",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 167
  },
  "hsl": {
    "h": 304.645,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53777,
    "c": 0.22975,
    "h": 332
  },
  "luminance": 0.13027
}

Semantic roles & 50–950 ramp

primary
#B318A7
secondary
#5ACD63
accent
#F34435
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B318A7

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

Preview Lab → · Contrast checker → · Palette generator →

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