#D238A7#D238A7

#D238A7 is a mid, highly saturated pink. Relative luminance 0.193; OKLCH L 60.7% C 0.219 H 341.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#D238A7
RGBrgb(210, 56, 167)
HSLhsl(317, 63%, 52%)
HSVhsv(317, 73%, 82%)
CMYKcmyk(0%, 73.3%, 20.5%, 17.6%)
CIE-LABlab(51.06, 69.21, -25.73)
CIE-LCHlch(51.06, 73.84, 339.61°)
OKLaboklab(60.71% 0.2075 -0.0692)
OKLCHoklch(60.71% 0.219 341.6)
XYZxyz(34.9687, 19.3235, 38.4399)
Luminance0.1932 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D238A7 #38D263
analogous
#B038D2 #D238A7 #D2385A
triadic
#D238A7 #A7D238 #38A7D2
tetradic
#D238A7 #D2B038 #38D263 #385AD2
square
#D238A7 #D2B038 #38D263 #385AD2
split-complementary
#D238A7 #5AD238 #38D2B0
monochromatic
#751A5C #A72683 #D238A7 #DD6ABD #E99CD3

Accessibility & contrast

On white

4.32
#D238A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#D238A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D238A7
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D238A7#FFFFFF#000000##000000
##D238A71.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#466AAA
Deuteranopia (green-blind)
#7683A3
Tritanopia (blue-blind)
#DF3B6B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d238a7;
/* rgb */ color: rgb(210, 56, 167);
/* oklch */ color: oklch(60.7% 0.219 341.6);
Tailwind
colors: {
  custom: {
    50: '#e47dc1',
    500: '#d238a7',
    950: '#000000',
  },
}
SCSS
$custom: #d238a7;
$custom-light: #e47dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#d238a7",
  "rgb": {
    "r": 210,
    "g": 56,
    "b": 167
  },
  "hsl": {
    "h": 316.753,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60711,
    "c": 0.21872,
    "h": 341.6
  },
  "luminance": 0.1932
}

Semantic roles & 50–950 ramp

primary
#D238A7
secondary
#91D5A4
accent
#E67042
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D238A7

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

Preview Lab → · Contrast checker → · Palette generator →

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