#C798BF#C798BF

#C798BF is a light, moderate pink. Relative luminance 0.384; OKLCH L 73.6% C 0.077 H 332.3°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#C798BF
RGBrgb(199, 152, 191)
HSLhsl(310, 30%, 69%)
HSVhsv(310, 24%, 78%)
CMYKcmyk(0%, 23.6%, 4%, 22%)
CIE-LABlab(68.29, 24.03, -13.34)
CIE-LCHlch(68.29, 27.48, 330.97°)
OKLaboklab(73.6% 0.0679 -0.0356)
OKLCHoklch(73.6% 0.077 332.3)
XYZxyz(44.1846, 38.3615, 54.3571)
Luminance0.3836 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798BF #98C7A0
analogous
#B898C7 #C798BF #C798A8
triadic
#C798BF #BFC798 #98BFC7
tetradic
#C798BF #C7B898 #98C7A0 #98A8C7
square
#C798BF #C7B898 #98C7A0 #98A8C7
split-complementary
#C798BF #A8C798 #98C7B8
monochromatic
#945189 #B170A6 #C798BF #DDC0D8 #F2E7F0

Accessibility & contrast

On white

2.42
#C798BF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#C798BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798BF
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798BF#FFFFFF#000000##000000
##C798BF1.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#97A3C1
Deuteranopia (green-blind)
#A2A9BD
Tritanopia (blue-blind)
#CB9AA5
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #c798bf;
/* rgb */ color: rgb(199, 152, 191);
/* oklch */ color: oklch(73.6% 0.077 332.3);
Tailwind
colors: {
  custom: {
    50: '#d8b6d2',
    500: '#c798bf',
    950: '#000000',
  },
}
SCSS
$custom: #c798bf;
$custom-light: #d8b6d2;
$custom-dark: #000000;
JSON
{
  "hex": "#c798bf",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 191
  },
  "hsl": {
    "h": 310.213,
    "s": 29.56,
    "l": 68.824
  },
  "oklch": {
    "l": 0.73595,
    "c": 0.07666,
    "h": 332.3
  },
  "luminance": 0.3836
}

Semantic roles & 50–950 ramp

primary
#C798BF
secondary
#D6E4D9
accent
#A84F3D
background
#FDFBFC
surface
#FAF6F9
border
#D3D0D2
text
#141114
muted
#838082

Preview Lab

Preview with #C798BF

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

Preview Lab → · Contrast checker → · Palette generator →

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