#C338AC#C338AC

#C338AC is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.7% C 0.213 H 335.5°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#C338AC
RGBrgb(195, 56, 172)
HSLhsl(310, 55%, 49%)
HSVhsv(310, 71%, 76%)
CMYKcmyk(0%, 71.3%, 11.8%, 23.5%)
CIE-LABlab(48.77, 66.32, -32.43)
CIE-LCHlch(48.77, 73.83, 333.95°)
OKLaboklab(58.65% 0.1938 -0.0885)
OKLCHoklch(58.65% 0.213 335.5)
XYZxyz(31.3666, 17.4118, 40.7306)
Luminance0.1741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338AC #38C34F
analogous
#9538C3 #C338AC #C33867
triadic
#C338AC #ACC338 #38ACC3
tetradic
#C338AC #C39538 #38C34F #3867C3
square
#C338AC #C39538 #38C34F #3867C3
split-complementary
#C338AC #67C338 #38C395
monochromatic
#641D58 #932A82 #C338AC #D365C1 #E195D4

Accessibility & contrast

On white

4.69
#C338AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#C338AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C338AC
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338AC#FFFFFF#000000##FFFFFF
##C338AC1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3867AF
Deuteranopia (green-blind)
#697BA9
Tritanopia (blue-blind)
#CD426E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c338ac;
/* rgb */ color: rgb(195, 56, 172);
/* oklch */ color: oklch(58.7% 0.213 335.5);
Tailwind
colors: {
  custom: {
    50: '#d97bc5',
    500: '#c338ac',
    950: '#000000',
  },
}
SCSS
$custom: #c338ac;
$custom-light: #d97bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#c338ac",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 309.928,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58652,
    "c": 0.21305,
    "h": 335.5
  },
  "luminance": 0.17409
}

Semantic roles & 50–950 ramp

primary
#C338AC
secondary
#8BCC96
accent
#DF6249
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C338AC

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

Preview Lab → · Contrast checker → · Palette generator →

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