#B318A3#B318A3

#B318A3 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.227 H 333.4°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#B318A3
RGBrgb(179, 24, 163)
HSLhsl(306, 76%, 40%)
HSVhsv(306, 87%, 70%)
CMYKcmyk(0%, 86.6%, 8.9%, 29.8%)
CIE-LABlab(42.59, 70.07, -37.01)
CIE-LCHlch(42.59, 79.24, 332.16°)
OKLaboklab(53.55% 0.203 -0.1018)
OKLCHoklch(53.55% 0.227 333.4)
XYZxyz(25.5281, 12.8836, 35.7855)
Luminance0.1288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318A3 #18B328
analogous
#7618B3 #B318A3 #B31855
triadic
#B318A3 #A3B318 #18A3B3
tetradic
#B318A3 #B37618 #18B328 #1855B3
square
#B318A3 #B37618 #18B328 #1855B3
split-complementary
#B318A3 #55B318 #18B376
monochromatic
#470A41 #7D1172 #B318A3 #E226CF #E95CDB

Accessibility & contrast

On white

5.87
#B318A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#B318A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318A3
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318A3#FFFFFF#000000##FFFFFF
##B318A31.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B57A6
Deuteranopia (green-blind)
#556CA0
Tritanopia (blue-blind)
#BB2E61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b318a3;
/* rgb */ color: rgb(179, 24, 163);
/* oklch */ color: oklch(53.5% 0.227 333.4);
Tailwind
colors: {
  custom: {
    50: '#ce6dbf',
    500: '#b318a3',
    950: '#000000',
  },
}
SCSS
$custom: #b318a3;
$custom-light: #ce6dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#b318a3",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 163
  },
  "hsl": {
    "h": 306.194,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5355,
    "c": 0.22707,
    "h": 333.4
  },
  "luminance": 0.12881
}

Semantic roles & 50–950 ramp

primary
#B318A3
secondary
#5ACD66
accent
#F34835
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B318A3

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

Preview Lab → · Contrast checker → · Palette generator →

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