#B4238C#B4238C

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

Color values

HEX#B4238C
RGBrgb(180, 35, 140)
HSLhsl(317, 67%, 42%)
HSVhsv(317, 81%, 71%)
CMYKcmyk(0%, 80.6%, 22.2%, 29.4%)
CIE-LABlab(42.46, 64.73, -23.29)
CIE-LCHlch(42.46, 68.79, 340.21°)
OKLaboklab(53.12% 0.195 -0.0626)
OKLCHoklch(53.12% 0.205 342.2)
XYZxyz(24.1579, 12.8014, 26.0045)
Luminance0.1280 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4238C #23B44B
analogous
#9423B4 #B4238C #B42343
triadic
#B4238C #8CB423 #238CB4
tetradic
#B4238C #B49423 #23B44B #2343B4
square
#B4238C #B49423 #23B44B #2343B4
split-complementary
#B4238C #43B423 #23B494
monochromatic
#4E0F3C #811964 #B4238C #D93BAD #E36EC3

Accessibility & contrast

On white

5.90
#B4238C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#B4238C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4238C
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4238C#FFFFFF#000000##FFFFFF
##B4238C1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33558F
Deuteranopia (green-blind)
#626D89
Tritanopia (blue-blind)
#C02556
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4238c;
/* rgb */ color: rgb(180, 35, 140);
/* oklch */ color: oklch(53.1% 0.205 342.2);
Tailwind
colors: {
  custom: {
    50: '#cf70ae',
    500: '#b4238c',
    950: '#000000',
  },
}
SCSS
$custom: #b4238c;
$custom-light: #cf70ae;
$custom-dark: #000000;
JSON
{
  "hex": "#b4238c",
  "rgb": {
    "r": 180,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 316.552,
    "s": 67.442,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53124,
    "c": 0.20475,
    "h": 342.2
  },
  "luminance": 0.12799
}

Semantic roles & 50–950 ramp

primary
#B4238C
secondary
#69C984
accent
#EA6D3D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B4238C

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

Preview Lab → · Contrast checker → · Palette generator →

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