#B318AA#B318AA

#B318AA is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 54.0% C 0.232 H 331.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B318AA
RGBrgb(179, 24, 170)
HSLhsl(303, 76%, 40%)
HSVhsv(303, 87%, 70%)
CMYKcmyk(0%, 86.6%, 5%, 29.8%)
CIE-LABlab(42.98, 71.09, -40.57)
CIE-LCHlch(42.98, 81.85, 330.28°)
OKLaboklab(53.95% 0.2029 -0.1121)
OKLCHoklch(53.95% 0.232 331.1)
XYZxyz(26.1727, 13.1415, 39.1805)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318AA #18B321
analogous
#6F18B3 #B318AA #B3185C
triadic
#B318AA #AAB318 #18AAB3
tetradic
#B318AA #B36F18 #18B321 #185CB3
square
#B318AA #B36F18 #18B321 #185CB3
split-complementary
#B318AA #5CB318 #18B36F
monochromatic
#470A43 #7D1177 #B318AA #E226D7 #E95CE1

Accessibility & contrast

On white

5.79
#B318AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B318AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318AA
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318AA#FFFFFF#000000##FFFFFF
##B318AA1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#516DA7
Tritanopia (blue-blind)
#BA3265
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b318aa;
/* rgb */ color: rgb(179, 24, 170);
/* oklch */ color: oklch(54.0% 0.232 331.1);
Tailwind
colors: {
  custom: {
    50: '#ce6ec4',
    500: '#b318aa',
    950: '#000000',
  },
}
SCSS
$custom: #b318aa;
$custom-light: #ce6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#b318aa",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 170
  },
  "hsl": {
    "h": 303.484,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53951,
    "c": 0.23178,
    "h": 331.1
  },
  "luminance": 0.13139
}

Semantic roles & 50–950 ramp

primary
#B318AA
secondary
#5ACD61
accent
#F34035
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B318AA

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

Preview Lab → · Contrast checker → · Palette generator →

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