#D238AB#D238AB

#D238AB is a mid, highly saturated pink. Relative luminance 0.195; OKLCH L 60.9% C 0.221 H 340.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#D238AB
RGBrgb(210, 56, 171)
HSLhsl(315, 63%, 52%)
HSVhsv(315, 73%, 82%)
CMYKcmyk(0%, 73.3%, 18.6%, 17.6%)
CIE-LABlab(51.24, 69.74, -27.81)
CIE-LCHlch(51.24, 75.08, 338.26°)
OKLaboklab(60.89% 0.2081 -0.0751)
OKLCHoklch(60.89% 0.221 340.2)
XYZxyz(35.3442, 19.4738, 40.4176)
Luminance0.1947 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D238AB #38D25F
analogous
#AC38D2 #D238AB #D2385E
triadic
#D238AB #ABD238 #38ABD2
tetradic
#D238AB #D2AC38 #38D25F #385ED2
square
#D238AB #D2AC38 #38D25F #385ED2
split-complementary
#D238AB #5ED238 #38D2AC
monochromatic
#751A5E #A72686 #D238AB #DD6AC0 #E99CD5

Accessibility & contrast

On white

4.29
#D238AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#D238AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D238AB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D238AB#FFFFFF#000000##000000
##D238AB1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#436AAE
Deuteranopia (green-blind)
#7583A7
Tritanopia (blue-blind)
#DE3D6D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d238ab;
/* rgb */ color: rgb(210, 56, 171);
/* oklch */ color: oklch(60.9% 0.221 340.2);
Tailwind
colors: {
  custom: {
    50: '#e47dc4',
    500: '#d238ab',
    950: '#000000',
  },
}
SCSS
$custom: #d238ab;
$custom-light: #e47dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#d238ab",
  "rgb": {
    "r": 210,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 315.195,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60893,
    "c": 0.2212,
    "h": 340.2
  },
  "luminance": 0.1947
}

Semantic roles & 50–950 ramp

primary
#D238AB
secondary
#91D5A2
accent
#E66B42
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #D238AB

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

Preview Lab → · Contrast checker → · Palette generator →

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