#B318A2#B318A2

#B318A2 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.5% C 0.226 H 333.7°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#B318A2
RGBrgb(179, 24, 162)
HSLhsl(307, 76%, 40%)
HSVhsv(307, 87%, 70%)
CMYKcmyk(0%, 86.6%, 9.5%, 29.8%)
CIE-LABlab(42.53, 69.92, -36.49)
CIE-LCHlch(42.53, 78.88, 332.44°)
OKLaboklab(53.49% 0.203 -0.1003)
OKLCHoklch(53.49% 0.226 333.7)
XYZxyz(25.4389, 12.8479, 35.3155)
Luminance0.1285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318A2 #18B329
analogous
#7718B3 #B318A2 #B31854
triadic
#B318A2 #A2B318 #18A2B3
tetradic
#B318A2 #B37718 #18B329 #1854B3
square
#B318A2 #B37718 #18B329 #1854B3
split-complementary
#B318A2 #54B318 #18B377
monochromatic
#470A40 #7D1171 #B318A2 #E226CD #E95CDA

Accessibility & contrast

On white

5.88
#B318A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#B318A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318A2
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318A2#FFFFFF#000000##FFFFFF
##B318A21.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E57A5
Deuteranopia (green-blind)
#556C9F
Tritanopia (blue-blind)
#BC2D60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b318a2;
/* rgb */ color: rgb(179, 24, 162);
/* oklch */ color: oklch(53.5% 0.226 333.7);
Tailwind
colors: {
  custom: {
    50: '#ce6dbe',
    500: '#b318a2',
    950: '#000000',
  },
}
SCSS
$custom: #b318a2;
$custom-light: #ce6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b318a2",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 162
  },
  "hsl": {
    "h": 306.581,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53494,
    "c": 0.2264,
    "h": 333.7
  },
  "luminance": 0.12846
}

Semantic roles & 50–950 ramp

primary
#B318A2
secondary
#5ACD67
accent
#F34A35
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B318A2

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

Preview Lab → · Contrast checker → · Palette generator →

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