#B0338B#B0338B

#B0338B is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.7% C 0.185 H 342.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#B0338B
RGBrgb(176, 51, 139)
HSLhsl(318, 55%, 45%)
HSVhsv(318, 71%, 69%)
CMYKcmyk(0%, 71%, 21%, 31%)
CIE-LABlab(43.45, 58.66, -21.20)
CIE-LCHlch(43.45, 62.37, 340.13°)
OKLaboklab(53.7% 0.1759 -0.0569)
OKLCHoklch(53.7% 0.185 342.1)
XYZxyz(23.7493, 13.4642, 25.7692)
Luminance0.1346 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B0338B #33B058
analogous
#9733B0 #B0338B #B0334D
triadic
#B0338B #8BB033 #338BB0
tetradic
#B0338B #B09733 #33B058 #334DB0
square
#B0338B #B09733 #33B058 #334DB0
split-complementary
#B0338B #4DB033 #33B097
monochromatic
#511840 #812566 #B0338B #CD53A9 #DB82C1

Accessibility & contrast

On white

5.69
#B0338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B0338B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B0338B
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B0338B#FFFFFF#000000##FFFFFF
##B0338B1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5A8D
Deuteranopia (green-blind)
#656E88
Tritanopia (blue-blind)
#BB345A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b0338b;
/* rgb */ color: rgb(176, 51, 139);
/* oklch */ color: oklch(53.7% 0.185 342.1);
Tailwind
colors: {
  custom: {
    50: '#cb75ad',
    500: '#b0338b',
    950: '#000000',
  },
}
SCSS
$custom: #b0338b;
$custom-light: #cb75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b0338b",
  "rgb": {
    "r": 176,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 317.76,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53696,
    "c": 0.18485,
    "h": 342.1
  },
  "luminance": 0.13462
}

Semantic roles & 50–950 ramp

primary
#B0338B
secondary
#7BC490
accent
#DE7649
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B0338B

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

Preview Lab → · Contrast checker → · Palette generator →

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