#C7D173#C7D173

#C7D173 is a very light, moderate yellow. Relative luminance 0.590; OKLCH L 83.3% C 0.119 H 114.0°. Best body text is #000000 at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#C7D173
RGBrgb(199, 209, 115)
HSLhsl(66, 51%, 64%)
HSVhsv(66, 45%, 82%)
CMYKcmyk(4.8%, 0%, 45%, 18%)
CIE-LABlab(81.28, -17.18, 45.26)
CIE-LCHlch(81.28, 48.41, 110.78°)
OKLaboklab(83.26% -0.0484 0.1087)
OKLCHoklch(83.26% 0.119 114)
XYZxyz(49.4488, 58.9815, 24.9960)
Luminance0.5898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D173 #7D73D1
analogous
#D1AC73 #C7D173 #98D173
triadic
#C7D173 #73C7D1 #D173C7
tetradic
#C7D173 #73D1AC #7D73D1 #D17398
square
#C7D173 #73D1AC #7D73D1 #D17398
split-complementary
#C7D173 #7398D1 #AC73D1
monochromatic
#8D9832 #B5C245 #C7D173 #D9E0A1 #ECEFCF

Accessibility & contrast

On white

1.64
#C7D173 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.80
#C7D173 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7D173
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7D173#FFFFFF#000000##000000
##C7D1731.001.6412.8012.80
#FFFFFF1.641.0021.0021.00
#00000012.8021.001.001.00
##00000012.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC96B
Deuteranopia (green-blind)
#DDCB78
Tritanopia (blue-blind)
#D1C7BB
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #c7d173;
/* rgb */ color: rgb(199, 209, 115);
/* oklch */ color: oklch(83.3% 0.119 114.0);
Tailwind
colors: {
  custom: {
    50: '#d9df9d',
    500: '#c7d173',
    950: '#000000',
  },
}
SCSS
$custom: #c7d173;
$custom-light: #d9df9d;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d173",
  "rgb": {
    "r": 199,
    "g": 209,
    "b": 115
  },
  "hsl": {
    "h": 66.383,
    "s": 50.538,
    "l": 63.529
  },
  "oklch": {
    "l": 0.83264,
    "c": 0.11894,
    "h": 114
  },
  "luminance": 0.58981
}

Semantic roles & 50–950 ramp

primary
#C7D173
secondary
#544B9D
accent
#28BE38
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150E
muted
#84847F

Preview Lab

Preview with #C7D173

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

Preview Lab → · Contrast checker → · Palette generator →

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