#B2338B#B2338B

#B2338B is a mid, vivid pink. Relative luminance 0.137; OKLCH L 54.0% C 0.186 H 342.7°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#B2338B
RGBrgb(178, 51, 139)
HSLhsl(318, 55%, 45%)
HSVhsv(318, 71%, 70%)
CMYKcmyk(0%, 71.3%, 21.9%, 30.2%)
CIE-LABlab(43.80, 59.17, -20.65)
CIE-LCHlch(43.80, 62.67, 340.77°)
OKLaboklab(54.01% 0.1778 -0.0553)
OKLCHoklch(54.01% 0.186 342.7)
XYZxyz(24.2049, 13.6992, 25.7906)
Luminance0.1370 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2338B #33B25A
analogous
#9A33B2 #B2338B #B2334C
triadic
#B2338B #8BB233 #338BB2
tetradic
#B2338B #B29A33 #33B25A #334CB2
square
#B2338B #B29A33 #33B25A #334CB2
split-complementary
#B2338B #4CB233 #33B29A
monochromatic
#531841 #822566 #B2338B #CE54A9 #DC84C1

Accessibility & contrast

On white

5.62
#B2338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#B2338B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2338B
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2338B#FFFFFF#000000##FFFFFF
##B2338B1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5A8D
Deuteranopia (green-blind)
#666F88
Tritanopia (blue-blind)
#BD345B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b2338b;
/* rgb */ color: rgb(178, 51, 139);
/* oklch */ color: oklch(54.0% 0.186 342.7);
Tailwind
colors: {
  custom: {
    50: '#cd76ad',
    500: '#b2338b',
    950: '#000000',
  },
}
SCSS
$custom: #b2338b;
$custom-light: #cd76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b2338b",
  "rgb": {
    "r": 178,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 318.425,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54012,
    "c": 0.18621,
    "h": 342.7
  },
  "luminance": 0.13697
}

Semantic roles & 50–950 ramp

primary
#B2338B
secondary
#7CC592
accent
#DF7749
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B2338B

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

Preview Lab → · Contrast checker → · Palette generator →

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