#B2338D#B2338D

#B2338D is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.1% C 0.187 H 341.9°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#B2338D
RGBrgb(178, 51, 141)
HSLhsl(317, 55%, 45%)
HSVhsv(317, 71%, 70%)
CMYKcmyk(0%, 71.3%, 20.8%, 30.2%)
CIE-LABlab(43.88, 59.45, -21.73)
CIE-LCHlch(43.88, 63.29, 339.92°)
OKLaboklab(54.1% 0.1782 -0.0583)
OKLCHoklch(54.1% 0.187 341.9)
XYZxyz(24.3524, 13.7581, 26.5672)
Luminance0.1376 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2338D #33B258
analogous
#9733B2 #B2338D #B2334E
triadic
#B2338D #8DB233 #338DB2
tetradic
#B2338D #B29733 #33B258 #334EB2
square
#B2338D #B29733 #33B258 #334EB2
split-complementary
#B2338D #4EB233 #33B297
monochromatic
#531842 #822567 #B2338D #CE54AB #DC84C2

Accessibility & contrast

On white

5.60
#B2338D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#B2338D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2338D
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2338D#FFFFFF#000000##FFFFFF
##B2338D1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5B90
Deuteranopia (green-blind)
#656F8A
Tritanopia (blue-blind)
#BD355C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b2338d;
/* rgb */ color: rgb(178, 51, 141);
/* oklch */ color: oklch(54.1% 0.187 341.9);
Tailwind
colors: {
  custom: {
    50: '#cd76ae',
    500: '#b2338d',
    950: '#000000',
  },
}
SCSS
$custom: #b2338d;
$custom-light: #cd76ae;
$custom-dark: #000000;
JSON
{
  "hex": "#b2338d",
  "rgb": {
    "r": 178,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 317.48,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54102,
    "c": 0.18748,
    "h": 341.9
  },
  "luminance": 0.13756
}

Semantic roles & 50–950 ramp

primary
#B2338D
secondary
#7CC591
accent
#DF7549
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B2338D

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

Preview Lab → · Contrast checker → · Palette generator →

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