#B318A6#B318A6

#B318A6 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.7% C 0.229 H 332.4°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#B318A6
RGBrgb(179, 24, 166)
HSLhsl(305, 76%, 40%)
HSVhsv(305, 87%, 70%)
CMYKcmyk(0%, 86.6%, 7.3%, 29.8%)
CIE-LABlab(42.75, 70.50, -38.54)
CIE-LCHlch(42.75, 80.35, 331.33°)
OKLaboklab(53.72% 0.203 -0.1062)
OKLCHoklch(53.72% 0.229 332.4)
XYZxyz(25.8001, 12.9924, 37.2180)
Luminance0.1299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318A6 #18B325
analogous
#7218B3 #B318A6 #B31859
triadic
#B318A6 #A6B318 #18A6B3
tetradic
#B318A6 #B37218 #18B325 #1859B3
square
#B318A6 #B37218 #18B325 #1859B3
split-complementary
#B318A6 #59B318 #18B372
monochromatic
#470A42 #7D1174 #B318A6 #E226D2 #E95CDD

Accessibility & contrast

On white

5.84
#B318A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#B318A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318A6
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318A6#FFFFFF#000000##FFFFFF
##B318A61.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058A9
Deuteranopia (green-blind)
#536CA3
Tritanopia (blue-blind)
#BB3063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b318a6;
/* rgb */ color: rgb(179, 24, 166);
/* oklch */ color: oklch(53.7% 0.229 332.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ec1',
    500: '#b318a6',
    950: '#000000',
  },
}
SCSS
$custom: #b318a6;
$custom-light: #ce6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#b318a6",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 166
  },
  "hsl": {
    "h": 305.032,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5372,
    "c": 0.22908,
    "h": 332.4
  },
  "luminance": 0.1299
}

Semantic roles & 50–950 ramp

primary
#B318A6
secondary
#5ACD64
accent
#F34535
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B318A6

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

Preview Lab → · Contrast checker → · Palette generator →

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