#B4238B#B4238B

#B4238B is a mid, highly saturated pink. Relative luminance 0.128; OKLCH L 53.1% C 0.204 H 342.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#B4238B
RGBrgb(180, 35, 139)
HSLhsl(317, 67%, 42%)
HSVhsv(317, 81%, 71%)
CMYKcmyk(0%, 80.6%, 22.8%, 29.4%)
CIE-LABlab(42.42, 64.60, -22.75)
CIE-LCHlch(42.42, 68.49, 340.60°)
OKLaboklab(53.08% 0.1948 -0.0611)
OKLCHoklch(53.08% 0.204 342.6)
XYZxyz(24.0845, 12.7720, 25.6180)
Luminance0.1277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4238B #23B44C
analogous
#9523B4 #B4238B #B42342
triadic
#B4238B #8BB423 #238BB4
tetradic
#B4238B #B49523 #23B44C #2342B4
square
#B4238B #B49523 #23B44C #2342B4
split-complementary
#B4238B #42B423 #23B495
monochromatic
#4E0F3C #811963 #B4238B #D93BAC #E36EC2

Accessibility & contrast

On white

5.91
#B4238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#B4238B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4238B
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4238B#FFFFFF#000000##FFFFFF
##B4238B1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558E
Deuteranopia (green-blind)
#626C88
Tritanopia (blue-blind)
#C02456
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4238b;
/* rgb */ color: rgb(180, 35, 139);
/* oklch */ color: oklch(53.1% 0.204 342.6);
Tailwind
colors: {
  custom: {
    50: '#cf70ad',
    500: '#b4238b',
    950: '#000000',
  },
}
SCSS
$custom: #b4238b;
$custom-light: #cf70ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b4238b",
  "rgb": {
    "r": 180,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 316.966,
    "s": 67.442,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53077,
    "c": 0.20415,
    "h": 342.6
  },
  "luminance": 0.12769
}

Semantic roles & 50–950 ramp

primary
#B4238B
secondary
#69C985
accent
#EA6E3D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B4238B

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

Preview Lab → · Contrast checker → · Palette generator →

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