#C0338B#C0338B

#C0338B is a mid, vivid pink. Relative luminance 0.154; OKLCH L 56.2% C 0.196 H 347.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#C0338B
RGBrgb(192, 51, 139)
HSLhsl(323, 58%, 48%)
HSVhsv(323, 73%, 75%)
CMYKcmyk(0%, 73.4%, 27.6%, 24.7%)
CIE-LABlab(46.23, 62.79, -16.70)
CIE-LCHlch(46.23, 64.97, 345.11°)
OKLaboklab(56.24% 0.1909 -0.0441)
OKLCHoklch(56.24% 0.196 347)
XYZxyz(27.5835, 15.4412, 25.9489)
Luminance0.1544 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C0338B #33C068
analogous
#AE33C0 #C0338B #C03345
triadic
#C0338B #8BC033 #338BC0
tetradic
#C0338B #C0AE33 #33C068 #3345C0
square
#C0338B #C0AE33 #33C068 #3345C0
split-complementary
#C0338B #45C033 #33C0AE
monochromatic
#5F1945 #902668 #C0338B #D45CA7 #E18DC1

Accessibility & contrast

On white

5.14
#C0338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#C0338B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C0338B
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C0338B#FFFFFF#000000##FFFFFF
##C0338B1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475E8D
Deuteranopia (green-blind)
#707688
Tritanopia (blue-blind)
#CD2E5B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c0338b;
/* rgb */ color: rgb(192, 51, 139);
/* oklch */ color: oklch(56.2% 0.196 347.0);
Tailwind
colors: {
  custom: {
    50: '#d778ad',
    500: '#c0338b',
    950: '#000000',
  },
}
SCSS
$custom: #c0338b;
$custom-light: #d778ad;
$custom-dark: #000000;
JSON
{
  "hex": "#c0338b",
  "rgb": {
    "r": 192,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 322.553,
    "s": 58.025,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56242,
    "c": 0.1959,
    "h": 347
  },
  "luminance": 0.15438
}

Semantic roles & 50–950 ramp

primary
#C0338B
secondary
#84CB9F
accent
#E18147
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #C0338B

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

Preview Lab → · Contrast checker → · Palette generator →

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