#C338A8#C338A8

#C338A8 is a mid, highly saturated pink. Relative luminance 0.173; OKLCH L 58.5% C 0.210 H 336.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#C338A8
RGBrgb(195, 56, 168)
HSLhsl(312, 55%, 49%)
HSVhsv(312, 71%, 76%)
CMYKcmyk(0%, 71.3%, 13.8%, 23.5%)
CIE-LABlab(48.59, 65.74, -30.36)
CIE-LCHlch(48.59, 72.41, 335.21°)
OKLaboklab(58.46% 0.1934 -0.0826)
OKLCHoklch(58.46% 0.21 336.9)
XYZxyz(30.9883, 17.2604, 38.7378)
Luminance0.1726 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338A8 #38C353
analogous
#9938C3 #C338A8 #C33863
triadic
#C338A8 #A8C338 #38A8C3
tetradic
#C338A8 #C39938 #38C353 #3863C3
square
#C338A8 #C39938 #38C353 #3863C3
split-complementary
#C338A8 #63C338 #38C399
monochromatic
#641D56 #932A7F #C338A8 #D365BE #E195D2

Accessibility & contrast

On white

4.72
#C338A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#C338A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C338A8
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338A8#FFFFFF#000000##FFFFFF
##C338A81.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AB
Deuteranopia (green-blind)
#6A7BA5
Tritanopia (blue-blind)
#CD406C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c338a8;
/* rgb */ color: rgb(195, 56, 168);
/* oklch */ color: oklch(58.5% 0.210 336.9);
Tailwind
colors: {
  custom: {
    50: '#d97bc2',
    500: '#c338a8',
    950: '#000000',
  },
}
SCSS
$custom: #c338a8;
$custom-light: #d97bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#c338a8",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 168
  },
  "hsl": {
    "h": 311.655,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58455,
    "c": 0.21028,
    "h": 336.9
  },
  "luminance": 0.17258
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C338A8

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

Preview Lab → · Contrast checker → · Palette generator →

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