#C338A7#C338A7

#C338A7 is a mid, highly saturated pink. Relative luminance 0.172; OKLCH L 58.4% C 0.210 H 337.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#C338A7
RGBrgb(195, 56, 167)
HSLhsl(312, 55%, 49%)
HSVhsv(312, 71%, 76%)
CMYKcmyk(0%, 71.3%, 14.4%, 23.5%)
CIE-LABlab(48.54, 65.60, -29.84)
CIE-LCHlch(48.54, 72.07, 335.54°)
OKLaboklab(58.41% 0.1933 -0.0811)
OKLCHoklch(58.41% 0.21 337.2)
XYZxyz(30.8955, 17.2233, 38.2490)
Luminance0.1722 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338A7 #38C354
analogous
#9938C3 #C338A7 #C33862
triadic
#C338A7 #A7C338 #38A7C3
tetradic
#C338A7 #C39938 #38C354 #3862C3
square
#C338A7 #C39938 #38C354 #3862C3
split-complementary
#C338A7 #62C338 #38C399
monochromatic
#641D56 #932A7E #C338A7 #D365BD #E195D1

Accessibility & contrast

On white

4.73
#C338A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#C338A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C338A7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338A7#FFFFFF#000000##FFFFFF
##C338A71.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AA
Deuteranopia (green-blind)
#6B7BA4
Tritanopia (blue-blind)
#CD406B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c338a7;
/* rgb */ color: rgb(195, 56, 167);
/* oklch */ color: oklch(58.4% 0.210 337.2);
Tailwind
colors: {
  custom: {
    50: '#d97bc1',
    500: '#c338a7',
    950: '#000000',
  },
}
SCSS
$custom: #c338a7;
$custom-light: #d97bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#c338a7",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 167
  },
  "hsl": {
    "h": 312.086,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58406,
    "c": 0.20959,
    "h": 337.2
  },
  "luminance": 0.1722
}

Semantic roles & 50–950 ramp

primary
#C338A7
secondary
#8BCC98
accent
#DF6749
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C338A7

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

Preview Lab → · Contrast checker → · Palette generator →

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