#C338A1#C338A1

#C338A1 is a mid, highly saturated pink. Relative luminance 0.170; OKLCH L 58.1% C 0.206 H 339.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#C338A1
RGBrgb(195, 56, 161)
HSLhsl(315, 55%, 49%)
HSVhsv(315, 71%, 76%)
CMYKcmyk(0%, 71.3%, 17.4%, 23.5%)
CIE-LABlab(48.27, 64.75, -26.71)
CIE-LCHlch(48.27, 70.04, 337.58°)
OKLaboklab(58.12% 0.1925 -0.0722)
OKLCHoklch(58.12% 0.206 339.4)
XYZxyz(30.3536, 17.0066, 35.3953)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338A1 #38C35A
analogous
#A038C3 #C338A1 #C3385C
triadic
#C338A1 #A1C338 #38A1C3
tetradic
#C338A1 #C3A038 #38C35A #385CC3
square
#C338A1 #C3A038 #38C35A #385CC3
split-complementary
#C338A1 #5CC338 #38C3A0
monochromatic
#641D52 #932A7A #C338A1 #D365B8 #E195CE

Accessibility & contrast

On white

4.77
#C338A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#C338A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C338A1
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338A1#FFFFFF#000000##FFFFFF
##C338A11.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4065A4
Deuteranopia (green-blind)
#6D7B9E
Tritanopia (blue-blind)
#CE3D68
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c338a1;
/* rgb */ color: rgb(195, 56, 161);
/* oklch */ color: oklch(58.1% 0.206 339.4);
Tailwind
colors: {
  custom: {
    50: '#d97bbd',
    500: '#c338a1',
    950: '#000000',
  },
}
SCSS
$custom: #c338a1;
$custom-light: #d97bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#c338a1",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 161
  },
  "hsl": {
    "h": 314.676,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5812,
    "c": 0.20557,
    "h": 339.4
  },
  "luminance": 0.17004
}

Semantic roles & 50–950 ramp

primary
#C338A1
secondary
#8BCC9B
accent
#DF6E49
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C338A1

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

Preview Lab → · Contrast checker → · Palette generator →

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