#D238A8#D238A8

#D238A8 is a mid, highly saturated pink. Relative luminance 0.194; OKLCH L 60.8% C 0.219 H 341.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#D238A8
RGBrgb(210, 56, 168)
HSLhsl(316, 63%, 52%)
HSVhsv(316, 73%, 82%)
CMYKcmyk(0%, 73.3%, 20%, 17.6%)
CIE-LABlab(51.11, 69.34, -26.25)
CIE-LCHlch(51.11, 74.14, 339.27°)
OKLaboklab(60.76% 0.2077 -0.0706)
OKLCHoklch(60.76% 0.219 341.2)
XYZxyz(35.0615, 19.3607, 38.9287)
Luminance0.1936 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D238A8 #38D262
analogous
#AF38D2 #D238A8 #D2385B
triadic
#D238A8 #A8D238 #38A8D2
tetradic
#D238A8 #D2AF38 #38D262 #385BD2
square
#D238A8 #D2AF38 #38D262 #385BD2
split-complementary
#D238A8 #5BD238 #38D2AF
monochromatic
#751A5C #A72684 #D238A8 #DD6ABE #E99CD4

Accessibility & contrast

On white

4.31
#D238A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#D238A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D238A8
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D238A8#FFFFFF#000000##000000
##D238A81.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#456AAB
Deuteranopia (green-blind)
#7683A4
Tritanopia (blue-blind)
#DF3B6C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d238a8;
/* rgb */ color: rgb(210, 56, 168);
/* oklch */ color: oklch(60.8% 0.219 341.2);
Tailwind
colors: {
  custom: {
    50: '#e47dc2',
    500: '#d238a8',
    950: '#000000',
  },
}
SCSS
$custom: #d238a8;
$custom-light: #e47dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#d238a8",
  "rgb": {
    "r": 210,
    "g": 56,
    "b": 168
  },
  "hsl": {
    "h": 316.364,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60756,
    "c": 0.21934,
    "h": 341.2
  },
  "luminance": 0.19357
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D238A8

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

Preview Lab → · Contrast checker → · Palette generator →

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