#B2238E#B2238E

#B2238E is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 52.9% C 0.205 H 340.8°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#B2238E
RGBrgb(178, 35, 142)
HSLhsl(315, 67%, 42%)
HSVhsv(315, 80%, 70%)
CMYKcmyk(0%, 80.3%, 20.2%, 30.2%)
CIE-LABlab(42.19, 64.53, -24.96)
CIE-LCHlch(42.19, 69.19, 338.85°)
OKLaboklab(52.89% 0.1934 -0.0673)
OKLCHoklch(52.89% 0.205 340.8)
XYZxyz(23.8444, 12.6225, 26.7666)
Luminance0.1262 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2238E #23B247
analogous
#8F23B2 #B2238E #B22347
triadic
#B2238E #8EB223 #238EB2
tetradic
#B2238E #B28F23 #23B247 #2347B2
square
#B2238E #B28F23 #23B247 #2347B2
split-complementary
#B2238E #47B223 #23B28F
monochromatic
#4C0F3C #7F1965 #B2238E #D83AB0 #E26DC5

Accessibility & contrast

On white

5.96
#B2238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#B2238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2238E
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2238E#FFFFFF#000000##FFFFFF
##B2238E1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305591
Deuteranopia (green-blind)
#606C8B
Tritanopia (blue-blind)
#BD2757
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b2238e;
/* rgb */ color: rgb(178, 35, 142);
/* oklch */ color: oklch(52.9% 0.205 340.8);
Tailwind
colors: {
  custom: {
    50: '#cd70af',
    500: '#b2238e',
    950: '#000000',
  },
}
SCSS
$custom: #b2238e;
$custom-light: #cd70af;
$custom-dark: #000000;
JSON
{
  "hex": "#b2238e",
  "rgb": {
    "r": 178,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 315.105,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5289,
    "c": 0.20482,
    "h": 340.8
  },
  "luminance": 0.1262
}

Semantic roles & 50–950 ramp

primary
#B2238E
secondary
#68C980
accent
#EA693E
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B2238E

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

Preview Lab → · Contrast checker → · Palette generator →

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