#B2238B#B2238B

#B2238B is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 52.7% C 0.203 H 342.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#B2238B
RGBrgb(178, 35, 139)
HSLhsl(316, 67%, 42%)
HSVhsv(316, 80%, 70%)
CMYKcmyk(0%, 80.3%, 21.9%, 30.2%)
CIE-LABlab(42.05, 64.14, -23.34)
CIE-LCHlch(42.05, 68.25, 340.00°)
OKLaboklab(52.75% 0.193 -0.0628)
OKLCHoklch(52.75% 0.203 342)
XYZxyz(23.6222, 12.5336, 25.5963)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2238B #23B24A
analogous
#9223B2 #B2238B #B22343
triadic
#B2238B #8BB223 #238BB2
tetradic
#B2238B #B29223 #23B24A #2343B2
square
#B2238B #B29223 #23B24A #2343B2
split-complementary
#B2238B #43B223 #23B292
monochromatic
#4C0F3B #7F1963 #B2238B #D83AAD #E26DC2

Accessibility & contrast

On white

5.99
#B2238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#B2238B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2238B
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2238B#FFFFFF#000000##FFFFFF
##B2238B1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33558E
Deuteranopia (green-blind)
#616B88
Tritanopia (blue-blind)
#BD2556
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b2238b;
/* rgb */ color: rgb(178, 35, 139);
/* oklch */ color: oklch(52.7% 0.203 342.0);
Tailwind
colors: {
  custom: {
    50: '#cd6fad',
    500: '#b2238b',
    950: '#000000',
  },
}
SCSS
$custom: #b2238b;
$custom-light: #cd6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#b2238b",
  "rgb": {
    "r": 178,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 316.364,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52746,
    "c": 0.20297,
    "h": 342
  },
  "luminance": 0.12531
}

Semantic roles & 50–950 ramp

primary
#B2238B
secondary
#68C982
accent
#EA6D3E
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B2238B

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

Preview Lab → · Contrast checker → · Palette generator →

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