#B318B0#B318B0

#B318B0 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.3% C 0.236 H 329.2°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#B318B0
RGBrgb(179, 24, 176)
HSLhsl(301, 76%, 40%)
HSVhsv(301, 87%, 70%)
CMYKcmyk(0%, 86.6%, 1.7%, 29.8%)
CIE-LABlab(43.32, 71.99, -43.59)
CIE-LCHlch(43.32, 84.15, 328.81°)
OKLaboklab(54.31% 0.2026 -0.1209)
OKLCHoklch(54.31% 0.236 329.2)
XYZxyz(26.7533, 13.3737, 42.2382)
Luminance0.1337 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B318B0 #18B31B
analogous
#6818B3 #B318B0 #B31863
triadic
#B318B0 #B0B318 #18B0B3
tetradic
#B318B0 #B36818 #18B31B #1863B3
square
#B318B0 #B36818 #18B31B #1863B3
split-complementary
#B318B0 #63B318 #18B368
monochromatic
#470A46 #7D117B #B318B0 #E226DE #E95CE6

Accessibility & contrast

On white

5.72
#B318B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#B318B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B318B0
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B318B0#FFFFFF#000000##FFFFFF
##B318B01.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#4D6DAD
Tritanopia (blue-blind)
#B93669
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b318b0;
/* rgb */ color: rgb(179, 24, 176);
/* oklch */ color: oklch(54.3% 0.236 329.2);
Tailwind
colors: {
  custom: {
    50: '#ce6ec8',
    500: '#b318b0',
    950: '#000000',
  },
}
SCSS
$custom: #b318b0;
$custom-light: #ce6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#b318b0",
  "rgb": {
    "r": 179,
    "g": 24,
    "b": 176
  },
  "hsl": {
    "h": 301.161,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.54306,
    "c": 0.2359,
    "h": 329.2
  },
  "luminance": 0.13372
}

Semantic roles & 50–950 ramp

primary
#B318B0
secondary
#5ACD5C
accent
#F33935
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B318B0

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

Preview Lab → · Contrast checker → · Palette generator →

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