#C0338E#C0338E

#C0338E is a mid, vivid pink. Relative luminance 0.155; OKLCH L 56.4% C 0.198 H 345.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#C0338E
RGBrgb(192, 51, 142)
HSLhsl(321, 58%, 48%)
HSVhsv(321, 73%, 75%)
CMYKcmyk(0%, 73.4%, 26%, 24.7%)
CIE-LABlab(46.35, 63.16, -18.33)
CIE-LCHlch(46.35, 65.77, 343.82°)
OKLaboklab(56.37% 0.1915 -0.0486)
OKLCHoklch(56.37% 0.198 345.7)
XYZxyz(27.8057, 15.5301, 27.1192)
Luminance0.1553 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C0338E #33C065
analogous
#AC33C0 #C0338E #C03347
triadic
#C0338E #8EC033 #338EC0
tetradic
#C0338E #C0AC33 #33C065 #3347C0
square
#C0338E #C0AC33 #33C065 #3347C0
split-complementary
#C0338E #47C033 #33C0AC
monochromatic
#5F1946 #90266A #C0338E #D45CA9 #E18DC3

Accessibility & contrast

On white

5.12
#C0338E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#C0338E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C0338E
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C0338E#FFFFFF#000000##FFFFFF
##C0338E1.005.124.115.12
#FFFFFF5.121.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455F90
Deuteranopia (green-blind)
#6F768B
Tritanopia (blue-blind)
#CD305C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c0338e;
/* rgb */ color: rgb(192, 51, 142);
/* oklch */ color: oklch(56.4% 0.198 345.7);
Tailwind
colors: {
  custom: {
    50: '#d778af',
    500: '#c0338e',
    950: '#000000',
  },
}
SCSS
$custom: #c0338e;
$custom-light: #d778af;
$custom-dark: #000000;
JSON
{
  "hex": "#c0338e",
  "rgb": {
    "r": 192,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 321.277,
    "s": 58.025,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56368,
    "c": 0.19759,
    "h": 345.7
  },
  "luminance": 0.15527
}

Semantic roles & 50–950 ramp

primary
#C0338E
secondary
#84CB9D
accent
#E17D47
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #C0338E

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

Preview Lab → · Contrast checker → · Palette generator →

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